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.
pull/1118/head
Peter Dave Hello 2023-09-26 00:13:38 +08:00 committed by GitHub
parent e1fc014bf7
commit 35598019c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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