smgc commited on
Commit
5422179
1 Parent(s): be5d0fb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -6,7 +6,7 @@ RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-r
6
 
7
  WORKDIR /build/web
8
  RUN npm install
9
- COPY /build//VERSION .
10
  RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
11
 
12
  FROM golang AS builder2
@@ -19,7 +19,7 @@ WORKDIR /build
19
  RUN git clone https://github.com/MartialBE/one-api.git .
20
  RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
21
  RUN go mod download
22
- COPY --from=builder /build/build ./web/build
23
  RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
24
 
25
  FROM alpine
 
6
 
7
  WORKDIR /build/web
8
  RUN npm install
9
+ COPY ./VERSION .
10
  RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
11
 
12
  FROM golang AS builder2
 
19
  RUN git clone https://github.com/MartialBE/one-api.git .
20
  RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
21
  RUN go mod download
22
+ COPY --from=builder /build/web/build ./web/build
23
  RUN go build -ldflags "-s -w -X 'one-api/common.Version=$(cat VERSION)' -extldflags '-static'" -o one-api
24
 
25
  FROM alpine