瀏覽代碼

修改Docker配置

yingp 8 年之前
父節點
當前提交
313a6ab4ef
共有 1 個文件被更改,包括 2 次插入2 次删除
  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" ]