clean up apk/apt caches

This commit is contained in:
Ryan Cavicchioni 2025-04-30 15:55:06 -05:00
parent 4506628803
commit 9ab21f0e18
Signed by: ryanc
SSH Key Fingerprint: SHA256:FEbwJ3JyWHwYNAM8BqctZ/LmHHg1bzfi/huOj7FxlXU
2 changed files with 4 additions and 0 deletions

View File

@ -6,6 +6,7 @@ WORKDIR /app
RUN <<EOT
apk update -q
apk add bash
rm -rf /var/cache/apk
gem update --system --no-document
gem install -N bundler
EOT
@ -18,6 +19,7 @@ ENV BUNDLE_DEPLOYMENT=true \
RUN <<EOT
apk add musl-dev gcc make
rm -rf /var/cache/apk
EOT
COPY Gemfile* .

View File

@ -5,6 +5,7 @@ WORKDIR /app
RUN <<EOT
apt-get update -qq
rm -rf /var/lib/apt/lists /var/cache/apt/archives
gem update --system --no-document
gem install -N bundler
EOT
@ -18,6 +19,7 @@ ENV BUNDLE_DEPLOYMENT=true \
RUN <<EOT
apt-get update -qq
apt-get install --yes --no-install-recommends gcc make libc-dev
rm -rf /var/lib/apt/lists /var/cache/apt/archives
EOT
COPY Gemfile* .