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