Browse Source

借助运行时环境参数进行编译

yingp 7 years ago
parent
commit
cc00016243
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Dockerfile

+ 2 - 2
Dockerfile

@@ -5,6 +5,6 @@ WORKDIR /app
 
 COPY . /app
 RUN cnpm install
-RUN npm run build
+#RUN npm run build
 
-CMD [ "npm", "start" ]
+CMD [ "npm run build && npm start" ]