Skip to content

Commit

Permalink
fix: fix Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jan 7, 2024
1 parent d37f836 commit e80cd50
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 .
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e80cd50

Please sign in to comment.