Prevent leaving apk cache in Docker image (#1440)

Use `--no-cache` with `apk upgrade` instead of additional `apk update`
This commit is contained in:
Peter Dave Hello 2021-11-04 20:17:40 +08:00 committed by GitHub
parent a4389c99c7
commit d272cd80d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ FROM alpine:3.13.3
LABEL maintainer="tckb <tckb@tgrthi.me>"
ENV LANG=C.UTF-8
RUN apk update && apk upgrade
RUN apk upgrade --no-cache
RUN apk add --no-cache openssl ncurses libstdc++ libgcc