Эх сурвалжийг харах

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

yingp 8 жил өмнө
parent
commit
cc00016243
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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" ]