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 . .
|
||||
|
Reference in New Issue
Block a user