Browse Source

修改Docker配置

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

+ 2 - 2
Dockerfile

@@ -5,7 +5,7 @@ WORKDIR /app
 
 COPY . /app
 RUN cnpm install
-RUN npm build
+RUN npm run build
 
 EXPOSE 3000
-CMD [ "npm", "start" ]
+CMD [ "npm", "run start" ]