refactor: update Dockerfile to remove unnecessary build flags

This commit is contained in:
Laisky.Cai 2024-07-09 06:54:04 +00:00
parent f9417d32e1
commit a2a8aa741f

View File

@ -25,7 +25,7 @@ ADD go.mod go.sum ./
RUN go mod download
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'" -o one-api
RUN go build -trimpath -ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)'" -o one-api
FROM debian:bullseye