mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-09 02:03:42 +08:00
build:dockerfile
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -4,13 +4,17 @@ WORKDIR /web
|
|||||||
COPY ./VERSION .
|
COPY ./VERSION .
|
||||||
COPY ./web .
|
COPY ./web .
|
||||||
|
|
||||||
RUN npm install ajv@^6 ajv-keywords@^3 --legacy-peer-deps --prefix /web/default && \
|
WORKDIR /web/default
|
||||||
npm install ajv@^6 ajv-keywords@^3 --legacy-peer-deps --prefix /web/berry && \
|
RUN npm install --force
|
||||||
npm install ajv@^6 ajv-keywords@^3 --legacy-peer-deps --prefix /web/air
|
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||||
|
|
||||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/default && \
|
WORKDIR /web/berry
|
||||||
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/berry && \
|
RUN npm install --force
|
||||||
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/air
|
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||||
|
|
||||||
|
WORKDIR /web/air
|
||||||
|
RUN npm install --force
|
||||||
|
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) npm run build
|
||||||
|
|
||||||
FROM golang:alpine AS builder2
|
FROM golang:alpine AS builder2
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user