From d272cd80d5e73651379651a491eddc78935bc3ac Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 4 Nov 2021 20:17:40 +0800 Subject: [PATCH] Prevent leaving apk cache in Docker image (#1440) Use `--no-cache` with `apk upgrade` instead of additional `apk update` --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d76c0b1e0..39624571a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -53,7 +53,7 @@ FROM alpine:3.13.3 LABEL maintainer="tckb " ENV LANG=C.UTF-8 -RUN apk update && apk upgrade +RUN apk upgrade --no-cache RUN apk add --no-cache openssl ncurses libstdc++ libgcc