Merge pull request #1135 from PeterDaveHelloKitchen/Dockerfile

refactor: optimize Dockerfile apk usage
This commit is contained in:
Calcium-Ion
2025-06-21 05:03:16 +08:00
committed by GitHub

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