Browse Source

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

yingp 7 years ago
parent
commit
017e3837c8
2 changed files with 3 additions and 1 deletions
  1. 1 1
      Dockerfile
  2. 2 0
      run.sh

+ 1 - 1
Dockerfile

@@ -7,4 +7,4 @@ COPY . /app
 RUN cnpm install
 #RUN npm run build
 
-CMD [ "npm run build && npm start" ]
+CMD [ "run.sh" ]

+ 2 - 0
run.sh

@@ -0,0 +1,2 @@
+npm run build
+npm start