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