From 2174039fcec8487b9fc30fa9fd956872e3ec2bba Mon Sep 17 00:00:00 2001 From: suziheng Date: Mon, 15 Sep 2025 15:58:46 +0800 Subject: [PATCH] build:dockerfile --- Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 397ca3ea..5e175bde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,13 +4,17 @@ WORKDIR /web COPY ./VERSION . COPY ./web . -RUN npm install ajv@^6 ajv-keywords@^3 --legacy-peer-deps --prefix /web/default && \ - npm install ajv@^6 ajv-keywords@^3 --legacy-peer-deps --prefix /web/berry && \ - npm install ajv@^6 ajv-keywords@^3 --legacy-peer-deps --prefix /web/air +WORKDIR /web/default +RUN npm install --force +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 && \ - DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/berry && \ - DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat ./VERSION) npm run build --prefix /web/air +WORKDIR /web/berry +RUN npm install --force +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