Browse Source

Dockerfile

wangliang 3 weeks ago
parent
commit
fdb0a3f0c1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      web/base/Dockerfile

+ 1 - 1
web/base/Dockerfile

@@ -6,7 +6,7 @@ MAINTAINER wangliang@qmth.com.cn
 WORKDIR /opt
 COPY . .
 RUN npm config set registry http://registry.cnpmjs.org && npm config set registry http://registry.npm.taobao.org
-RUN npm install
+RUN npm install --legacy-peer-deps
 RUN NODE_OPTIONS=--max_old_space_size=4096 npm run build
 
 FROM nginx:1.27.4 AS production-stage