From e80cd508baaf6a10733503a0dc09dfd6c98bf411 Mon Sep 17 00:00:00 2001 From: JustSong Date: Sun, 7 Jan 2024 15:12:30 +0800 Subject: [PATCH] fix: fix Dockerfile --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0ae532cb..e9468b25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,7 @@ COPY ./web/default . COPY ./VERSION . RUN mkdir -p ../build/default RUN GENERATE_SOURCEMAP='false' DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build +RUN mv build/* ../build/default WORKDIR /web/berry COPY web/berry/package.json . @@ -15,6 +16,7 @@ COPY ./web/berry . COPY ./VERSION . RUN mkdir -p ../build/berry RUN GENERATE_SOURCEMAP='false' DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build +RUN mv build/* ../build/berry WORKDIR /web/build RUN ls @@ -31,7 +33,8 @@ RUN go mod download COPY . . COPY --from=builder /web/build ./web RUN ls ./web -RUN ls ./web/default +RUN ls ./web/build +RUN ls ./web/build/default RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api FROM alpine