Browse Source

Dockerfile

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

+ 2 - 1
web/base/Dockerfile

@@ -1,4 +1,5 @@
 ARG NODE_VERSION=18
+ARG INSTALL_VALUE=npm install
 FROM node:${NODE_VERSION} AS build-stage
 ENV TZ Asia/Shanghai
 MAINTAINER wangliang@qmth.com.cn
@@ -6,7 +7,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 echo ${INSTALL_VALUE}
 RUN NODE_OPTIONS=--max_old_space_size=4096 npm run build
 
 FROM nginx:1.27.4 AS production-stage