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