chore: do not static build anymore

This commit is contained in:
JustSong 2025-02-01 13:32:50 +08:00
parent 75d9d9d560
commit afbbfbbf83

View File

@ -36,7 +36,7 @@ COPY . .
COPY --from=builder /web/build ./web/build COPY --from=builder /web/build ./web/build
RUN go build -trimpath \ RUN go build -trimpath \
-ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' -extldflags '-static'" \ -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' \
-o one-api -o one-api
# Final runtime image # Final runtime image