Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -2,19 +2,20 @@ FROM --platform=$BUILDPLATFORM node:16 AS builder
|
|
2 |
|
3 |
WORKDIR /src
|
4 |
RUN git clone https://github.com/songquanpeng/one-api.git -b v0.6.8 .
|
5 |
-
WORKDIR /src/web
|
6 |
-
RUN cp /src/VERSION .
|
7 |
|
8 |
WORKDIR /src/web/default
|
9 |
RUN npm install
|
|
|
10 |
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
11 |
|
12 |
WORKDIR /src/web/berry
|
13 |
RUN npm install
|
|
|
14 |
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
15 |
|
16 |
WORKDIR /src/web/air
|
17 |
RUN npm install
|
|
|
18 |
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
19 |
|
20 |
FROM golang:alpine AS builder2
|
|
|
2 |
|
3 |
WORKDIR /src
|
4 |
RUN git clone https://github.com/songquanpeng/one-api.git -b v0.6.8 .
|
|
|
|
|
5 |
|
6 |
WORKDIR /src/web/default
|
7 |
RUN npm install
|
8 |
+
RUN cp /src/VERSION .
|
9 |
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
10 |
|
11 |
WORKDIR /src/web/berry
|
12 |
RUN npm install
|
13 |
+
RUN cp /src/VERSION .
|
14 |
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
15 |
|
16 |
WORKDIR /src/web/air
|
17 |
RUN npm install
|
18 |
+
RUN cp /src/VERSION .
|
19 |
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
20 |
|
21 |
FROM golang:alpine AS builder2
|