fix: fix syntax error

This commit is contained in:
JustSong
2025-02-01 13:38:57 +08:00
parent afbbfbbf83
commit 4fe5ab8d09

View File

@@ -35,9 +35,7 @@ RUN go mod download
COPY . . 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)'" -o one-api
-ldflags "-s -w -X 'github.com/songquanpeng/one-api/common.Version=$(cat VERSION)' \
-o one-api
# Final runtime image # Final runtime image
FROM ubuntu:22.04 FROM ubuntu:22.04