From d37f836d53fa6918474e1cb18e1ca2240b474f91 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 7 Jan 2024 15:03:36 +0800 Subject: [PATCH] fix: fix Dockerfile --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ca7f18e..0ae532cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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