smgc commited on
Commit
be5d0fb
1 Parent(s): 949aae2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -3,11 +3,12 @@ FROM node:16 as builder
3
  WORKDIR /build
4
  RUN git clone https://github.com/MartialBE/one-api.git .
5
  RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
6
- COPY /build/web/package.json /build
 
7
  RUN npm install
 
8
  RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
9
 
10
-
11
  FROM golang AS builder2
12
 
13
  ENV GO111MODULE=on \
 
3
  WORKDIR /build
4
  RUN git clone https://github.com/MartialBE/one-api.git .
5
  RUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.go
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
13
 
14
  ENV GO111MODULE=on \