Remove additional `--update` for apk in Dockerfile

This commit is contained in:
Peter Dave Hello 2023-10-01 18:00:15 +08:00 committed by GitHub
parent b92ab458b0
commit 6edfc73879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ RUN go run build.go
FROM alpine:latest AS restic
RUN apk add --update --no-cache ca-certificates fuse openssh-client tzdata jq
RUN apk add --no-cache ca-certificates fuse openssh-client tzdata jq
COPY --from=builder /go/src/github.com/restic/restic/restic /usr/bin

View File

@ -13,6 +13,6 @@ RUN mv /output/restic_${TARGETOS}_${TARGETARCH} /output/restic
FROM alpine:latest
COPY --from=helper /output/restic /usr/bin
RUN apk add --update --no-cache ca-certificates fuse openssh-client tzdata jq
RUN apk add --no-cache ca-certificates fuse openssh-client tzdata jq
ENTRYPOINT ["/usr/bin/restic"]