Parcourir la source

Use `--no-cache` `--upgrade` option in `apk add`

No need for separate upgrade / cache cleanup steps.

Signed-off-by: Kumiko as a Service <[email protected]>
Kumiko as a Service il y a 1 mois
Parent
commit
63c8207d7a
1 fichiers modifiés avec 1 ajouts et 3 suppressions
  1. 1 3
      Dockerfile

+ 1 - 3
Dockerfile

@@ -20,8 +20,6 @@ RUN set -ex \
 FROM --platform=$TARGETPLATFORM alpine AS dist
 LABEL maintainer="nekohasekai <[email protected]>"
 RUN set -ex \
-    && apk upgrade \
-    && apk add bash tzdata ca-certificates nftables \
-    && rm -rf /var/cache/apk/*
+    && apk add --no-cache --upgrade bash tzdata ca-certificates nftables
 COPY --from=builder /go/bin/sing-box /usr/local/bin/sing-box
 ENTRYPOINT ["sing-box"]