Pārlūkot izejas kodu

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 1 mēnesi atpakaļ
vecāks
revīzija
63c8207d7a
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  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"]