no cache
This commit is contained in:
@ -14,12 +14,10 @@ ENV RACK_ENV="production" \
|
||||
WORKDIR /kubernaut
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=var-cache-apk-${TARGETARCH},target=/var/cache/apk,sharing=locked \
|
||||
apk update -q; \
|
||||
apk add bash jemalloc
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=usr-local-bundle-cache-${TARGETARCH},target=${BUNDLE_PATH},sharing=locked \
|
||||
gem update --system --no-document; \
|
||||
gem install -N bundler
|
||||
|
||||
@ -28,7 +26,6 @@ FROM base AS build
|
||||
ARG TARGETARCH
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=var-cache-apk-${TARGETARCH},target=/var/cache/apk,sharing=locked \
|
||||
apk update -q; \
|
||||
apk add musl-dev gcc make; \
|
||||
apk add bash jemalloc
|
||||
@ -36,7 +33,6 @@ RUN \
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=usr-local-bundle-ruby-cache-${TARGETARCH},target=${BUNDLE_PATH}/ruby/3.4.0/cache,sharing=locked \
|
||||
bundle install
|
||||
|
||||
COPY . .
|
||||
|
@ -17,14 +17,11 @@ WORKDIR /kubernaut
|
||||
RUN rm -f /etc/apt/apt.conf.d/docker-clean
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=var-cache-apt-${TARGETARCH},target=/var/cache/apt,sharing=locked \
|
||||
--mount=type=cache,id=var-lib-apt,target=/var/lib/apt,sharing=locked \
|
||||
apt-get update -qq; \
|
||||
apt-get install --yes --no-install-recommends \
|
||||
libjemalloc2
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=usr-local-bundle-cache-${TARGETARCH},target=${BUNDLE_PATH},sharing=locked \
|
||||
gem update --system --no-document; \
|
||||
gem install -N bundler
|
||||
|
||||
@ -35,8 +32,6 @@ FROM base AS build
|
||||
ARG TARGETARCH
|
||||
|
||||
RUN \
|
||||
--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 \
|
||||
apt-get update -qq; \
|
||||
apt-get install --yes --no-install-recommends \
|
||||
build-essential
|
||||
@ -44,7 +39,6 @@ RUN \
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,id=usr-local-bundle-ruby-cache-${TARGETARCH},target=${BUNDLE_PATH}/ruby/3.4.0/cache,sharing=locked \
|
||||
bundle install
|
||||
|
||||
COPY . .
|
||||
|
Reference in New Issue
Block a user