浏览代码

change Dockerfile - npm install with production flag

afrokick 5 年之前
父节点
当前提交
a88d88c6f2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -4,7 +4,7 @@ WORKDIR /peer-server
 COPY bin ./bin
 COPY dist ./dist
 COPY package.json .
-RUN npm install
+RUN npm install --production
 EXPOSE 9000
 ENTRYPOINT ["node", "bin/peerjs"]
 CMD [ "--port", "9000", "--path", "/myapp" ]