Compare commits
2 Commits
34e5e8dcf8
...
8e3e81978a
Author | SHA1 | Date | |
---|---|---|---|
8e3e81978a
|
|||
9d730100b3
|
@@ -10,6 +10,7 @@ target "_common" {
|
|||||||
RUBY_VERSION = "3.4.4"
|
RUBY_VERSION = "3.4.4"
|
||||||
}
|
}
|
||||||
platforms = [
|
platforms = [
|
||||||
|
"linux/amd64",
|
||||||
"linux/arm64",
|
"linux/arm64",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -18,14 +18,8 @@ RUN \
|
|||||||
apk update -q; \
|
apk update -q; \
|
||||||
apk add bash jemalloc
|
apk add bash jemalloc
|
||||||
|
|
||||||
RUN \
|
|
||||||
--mount=type=cache,id=usr-local-bundle-cache-${TARGETARCH},target=${BUNDLE_PATH},sharing=locked \
|
|
||||||
gem install -N bundler
|
|
||||||
|
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
|
|
||||||
ARG TARGETARCH
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
--mount=type=cache,id=var-cache-apk-${TARGETARCH},target=/var/cache/apk,sharing=locked \
|
--mount=type=cache,id=var-cache-apk-${TARGETARCH},target=/var/cache/apk,sharing=locked \
|
||||||
apk update -q; \
|
apk update -q; \
|
||||||
|
@@ -23,16 +23,9 @@ RUN \
|
|||||||
apt-get install --yes --no-install-recommends \
|
apt-get install --yes --no-install-recommends \
|
||||||
libjemalloc2
|
libjemalloc2
|
||||||
|
|
||||||
RUN \
|
|
||||||
--mount=type=cache,id=usr-local-bundle-cache-${TARGETARCH},target=${BUNDLE_PATH},sharing=locked \
|
|
||||||
gem install -N bundler
|
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND="noninteractive"
|
|
||||||
|
|
||||||
FROM base AS build
|
FROM base AS build
|
||||||
|
|
||||||
ARG TARGETARCH
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
--mount=type=cache,id=var-cache-apt-${TARGETARCH},target=/var/cache/apt,sharing=locked \
|
--mount=type=cache,id=var-cache-apt-${TARGETARCH},target=/var/cache/apt,sharing=locked \
|
||||||
--mount=type=cache,id=var-lib-apt-${TARGETARCH},target=/var/lib/apt,sharing=locked \
|
--mount=type=cache,id=var-lib-apt-${TARGETARCH},target=/var/lib/apt,sharing=locked \
|
||||||
|
Reference in New Issue
Block a user