Browse Source

Do not use apk cache and upgrade (#9966)

J0WI 1 week ago
parent
commit
26c1aba658
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      Dockerfile

+ 3
- 4
Dockerfile View File

@@ -24,8 +24,7 @@ COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules
24 24
 COPY --from=node /usr/local/bin/npm /usr/local/bin/npm
25 25
 COPY --from=node /opt/yarn-* /opt/yarn
26 26
 
27
-RUN apk -U upgrade \
28
- && apk add -t build-dependencies \
27
+RUN apk add --no-cache -t build-dependencies \
29 28
     build-base \
30 29
     icu-dev \
31 30
     libidn-dev \
@@ -36,7 +35,7 @@ RUN apk -U upgrade \
36 35
     postgresql-dev \
37 36
     protobuf-dev \
38 37
     python \
39
- && apk add \
38
+ && apk add --no-cache \
40 39
     ca-certificates \
41 40
     ffmpeg \
42 41
     file \
@@ -64,7 +63,7 @@ RUN apk -U upgrade \
64 63
  && make install \
65 64
  && libtool --finish /usr/local/lib \
66 65
  && cd /mastodon \
67
- && rm -rf /tmp/* /var/cache/apk/*
66
+ && rm -rf /tmp/*
68 67
 
69 68
 COPY Gemfile Gemfile.lock package.json yarn.lock .yarnclean /mastodon/
70 69
 

Loading…
Cancel
Save