Skip to content
This repository was archived by the owner on Jul 18, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
FROM node:latest
RUN apt-get update
RUN apt-get install -y netcat
COPY package.json /tmp/package.json
RUN cd /tmp/ && npm install --production -s
RUN mkdir -p /usr/src/app
RUN mv /tmp/node_modules /usr/src/app/
WORKDIR /usr/src/app
COPY . /usr/src/app
CMD npm start
COPY . /app
WORKDIR /app
RUN npm install --production -s
CMD ["npm","start"]