fix: fix Dockerfile

This commit is contained in:
JustSong 2024-01-07 15:03:36 +08:00
parent e0b2d1ae47
commit d37f836d53

View File

@ -30,6 +30,8 @@ ADD go.mod go.sum ./
RUN go mod download
COPY . .
COPY --from=builder /web/build ./web
RUN ls ./web
RUN ls ./web/default
RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
FROM alpine