Skip to content

Commit

Permalink
Restart docker container itself instead of managing processes inside …
Browse files Browse the repository at this point in the history
…the container (resolves cncjs#371)
  • Loading branch information
cheton committed Nov 2, 2018
1 parent d4fd37e commit 3f6766d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM node:8
MAINTAINER Cheton Wu <[email protected]>

# cache package.json and node_modules to speed up builds
ADD package.json package.json
RUN npm i npm@latest -g
RUN npm install --production
RUN npm install -g nodemon

ADD . .
EXPOSE 8000
CMD ["nodemon", "bin/cnc"]
CMD ["bin/cnc"]

0 comments on commit 3f6766d

Please sign in to comment.