refactor: optimize Dockerfile apk usage

This commit is contained in:
Peter Dave Hello
2025-04-29 22:54:43 +08:00
committed by GitHub
parent fd6838e690
commit bc322ddac4

View File

@@ -24,8 +24,7 @@ RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)'" -o one-
FROM alpine
RUN apk update \
&& apk upgrade \
RUN apk upgrade --no-cache \
&& apk add --no-cache ca-certificates tzdata ffmpeg \
&& update-ca-certificates