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