Explorar o código

docker 文件修改

yangc %!s(int64=7) %!d(string=hai) anos
pai
achega
f70dd76f96
Modificáronse 1 ficheiros con 3 adicións e 5 borrados
  1. 3 5
      Dockerfile

+ 3 - 5
Dockerfile

@@ -1,15 +1,13 @@
 FROM 10.10.100.200:5000/node-webpack:0.0.1
 
 RUN mkdir -p /app
-
 WORKDIR /app
 
-RUN cnpm install
-
-RUN npm run build
-
 COPY . /app
 
 RUN chmod +x run.sh
 
+RUN cnpm install
+RUN npm run build
+
 CMD [ "/app/run.sh" ]