From 35598019c041e85831b1f2baf97ad2c2b38e0c73 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 26 Sep 2023 00:13:38 +0800 Subject: [PATCH] Remove additional `--update` for apk in Dockerfile The `--no-cache` option in Alpine Linux's `apk` makes `--update` redundant, leading to unnecessary temporary files in the Docker image. This redundancy should be removed for a cleaner image. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4d79b78d..a7aea8e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,7 @@ ARG VERSION ARG COMMIT ARG BUILDPLATFORM ARG TARGETARCH -RUN apk add --update --no-cache libstdc++ gcc g++ make git autoconf \ +RUN apk add --no-cache libstdc++ gcc g++ make git autoconf \ libtool ca-certificates linux-headers wget curl jq && \ update-ca-certificates