Browse Source

Dockerfile

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

+ 1 - 2
web/base/Dockerfile

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