Compare commits
7 Commits
8e3e81978a
...
34e5e8dcf8
Author | SHA1 | Date | |
---|---|---|---|
34e5e8dcf8
|
|||
bdcd99ec92
|
|||
5fb1f2fcc7
|
|||
df808b8396
|
|||
6ec00632d1
|
|||
fafe0bc0bd
|
|||
533cea3b26
|
@@ -10,7 +10,6 @@ target "_common" {
|
|||||||
RUBY_VERSION = "3.4.4"
|
RUBY_VERSION = "3.4.4"
|
||||||
}
|
}
|
||||||
platforms = [
|
platforms = [
|
||||||
"linux/amd64",
|
|
||||||
"linux/arm64",
|
"linux/arm64",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@@ -18,8 +18,14 @@ 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,9 +23,16 @@ 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