clean up apk/apt caches
This commit is contained in:
parent
4506628803
commit
9ab21f0e18
@ -6,6 +6,7 @@ WORKDIR /app
|
|||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
apk update -q
|
apk update -q
|
||||||
apk add bash
|
apk add bash
|
||||||
|
rm -rf /var/cache/apk
|
||||||
gem update --system --no-document
|
gem update --system --no-document
|
||||||
gem install -N bundler
|
gem install -N bundler
|
||||||
EOT
|
EOT
|
||||||
@ -18,6 +19,7 @@ ENV BUNDLE_DEPLOYMENT=true \
|
|||||||
|
|
||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
apk add musl-dev gcc make
|
apk add musl-dev gcc make
|
||||||
|
rm -rf /var/cache/apk
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
COPY Gemfile* .
|
COPY Gemfile* .
|
||||||
|
@ -5,6 +5,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||||
gem update --system --no-document
|
gem update --system --no-document
|
||||||
gem install -N bundler
|
gem install -N bundler
|
||||||
EOT
|
EOT
|
||||||
@ -18,6 +19,7 @@ ENV BUNDLE_DEPLOYMENT=true \
|
|||||||
RUN <<EOT
|
RUN <<EOT
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install --yes --no-install-recommends gcc make libc-dev
|
apt-get install --yes --no-install-recommends gcc make libc-dev
|
||||||
|
rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
COPY Gemfile* .
|
COPY Gemfile* .
|
||||||
|
Loading…
x
Reference in New Issue
Block a user