Browse Source

change Dockerfile - npm install with production flag

afrokick 5 năm trước cách đây
mục cha
commit
a88d88c6f2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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" ]