mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-03 15:23:42 +08:00
fix: fix syntax error
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user