mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
build:dockerfile
This commit is contained in:
parent
4d3add220e
commit
7d2fc27c0f
@ -4,9 +4,10 @@ WORKDIR /web
|
||||
COPY ./VERSION .
|
||||
COPY ./web .
|
||||
|
||||
RUN npm install --legacy-peer-deps --prefix /web/default && \
|
||||
npm install --legacy-peer-deps --prefix /web/berry && \
|
||||
npm install --legacy-peer-deps --prefix /web/air
|
||||
# 确保使用 package-lock.json 安装,避免依赖版本漂移
|
||||
RUN npm ci --prefix /web/default && \
|
||||
npm ci --prefix /web/berry && \
|
||||
npm ci --prefix /web/air
|
||||
|
||||
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/default && \
|
||||
DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/berry && \
|
||||
|
Loading…
Reference in New Issue
Block a user