Skip to content

Commit

Permalink
Update CMD to use npm start
Browse files Browse the repository at this point in the history
  • Loading branch information
donny-dont committed Aug 19, 2016
1 parent 03d8ca8 commit a3c8b57
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
@@ -1,13 +1,13 @@
FROM node:4
FROM node:6

WORKDIR /opt
EXPOSE 1337
VOLUME ["/opt/data"]
CMD ["node", "index.js"]

ADD package.json /opt/package.json
RUN cd /opt && npm install

ADD . /opt
RUN npm install && \
npm run build && \
npm prune --production && \
npm cache clean

RUN npm run build
CMD ["npm", "start"]

0 comments on commit a3c8b57

Please sign in to comment.