Skip to content

Commit

Permalink
change Dockerfile - npm install with production flag
Browse files Browse the repository at this point in the history
  • Loading branch information
afrokick committed Mar 19, 2020
1 parent 1887a5a commit a88d88c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]

0 comments on commit a88d88c

Please sign in to comment.