Skip to content

Commit 34f297f

Browse files
wutsch0TimWolla
authored andcommitted
apk add with --no-cache
Use `--no-cache` option on `apk add` to reduce docker layer size
1 parent b3fa6e2 commit 34f297f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

5/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN set -x \
3535
| sort -u \
3636
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
3737
)" \
38-
&& apk add --virtual .phpexts-rundeps $runDeps \
38+
&& apk add --no-cache --virtual .phpexts-rundeps $runDeps \
3939
&& apk del --no-network .build-deps
4040

4141
COPY *.php /var/www/html/

5/fastcgi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ RUN set -x \
3131
| sort -u \
3232
| awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \
3333
)" \
34-
&& apk add --virtual .phpexts-rundeps $runDeps \
34+
&& apk add --no-cache --virtual .phpexts-rundeps $runDeps \
3535
&& apk del --no-network .build-deps
3636

3737
COPY *.php /var/www/html/

0 commit comments

Comments
 (0)