Skip to content

Commit da84740

Browse files
Remove --no-cache for apk in Dockerfile
As there is `apk upgrade` and `apk update`, the apk index will already be existed. `--no-cache` is for `apk` when there is no `apk update` behavior and it's expected to be no local cache left, not suitable for the use case here, which wants to upgrade all the package to the latest when packaging the image.
1 parent 2cb96d4 commit da84740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM alpine:3.11
22

33
RUN apk update && \
44
apk upgrade && \
5-
apk add --no-cache bash procps drill git coreutils libidn curl && \
5+
apk add bash procps drill git coreutils libidn curl && \
66
addgroup testssl && \
77
adduser -G testssl -g "testssl user" -s /bin/bash -D testssl && \
88
ln -s /home/testssl/testssl.sh /usr/local/bin/ && \

0 commit comments

Comments
 (0)