about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2019-02-05 15:13:19 +0100
committerEugen Rochko <eugen@zeonfederated.com>2019-02-05 15:13:19 +0100
commit26c1aba658d04617caf33783306b4504ca41f63c (patch)
treed2a83b0fa0e137bf89c2cef1c94021a046a365ec
parent11d150285302211def8015d0bc1b825f9f7e0e23 (diff)
Do not use apk cache and upgrade (#9966)
-rw-r--r--Dockerfile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index 184e25ca2..2b15381ec 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,8 +24,7 @@ COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
 COPY --from=node /usr/local/bin/npm /usr/local/bin/npm
 COPY --from=node /opt/yarn-* /opt/yarn
 
-RUN apk -U upgrade \
- && apk add -t build-dependencies \
+RUN apk add --no-cache -t build-dependencies \
     build-base \
     icu-dev \
     libidn-dev \
@@ -36,7 +35,7 @@ RUN apk -U upgrade \
     postgresql-dev \
     protobuf-dev \
     python \
- && apk add \
+ && apk add --no-cache \
     ca-certificates \
     ffmpeg \
     file \
@@ -64,7 +63,7 @@ RUN apk -U upgrade \
  && make install \
  && libtool --finish /usr/local/lib \
  && cd /mastodon \
- && rm -rf /tmp/* /var/cache/apk/*
+ && rm -rf /tmp/*
 
 COPY Gemfile Gemfile.lock package.json yarn.lock .yarnclean /mastodon/