Skip to content

Commit 3760866

Browse files
authored
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]>
1 parent 84ceb90 commit 3760866

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ RUN set -ex \
2020
FROM --platform=$TARGETPLATFORM alpine AS dist
2121
LABEL maintainer="nekohasekai <[email protected]>"
2222
RUN set -ex \
23-
&& apk upgrade \
24-
&& apk add bash tzdata ca-certificates nftables \
25-
&& rm -rf /var/cache/apk/*
23+
&& apk add --no-cache --upgrade bash tzdata ca-certificates nftables
2624
COPY --from=builder /go/bin/sing-box /usr/local/bin/sing-box
2725
ENTRYPOINT ["sing-box"]

0 commit comments

Comments
 (0)