From afbbfbbf83c44fbdd2d97d4859d128f95f4091e5 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sat, 1 Feb 2025 13:32:50 +0800 Subject: [PATCH] chore: do not static build anymore --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 35a7420e..f35a4c47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ COPY . . COPY --from=builder /web/build ./web/build 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 # Final runtime image