Skip to content

Commit

Permalink
add production stage
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-dempers committed Mar 29, 2020
1 parent 772ef7e commit a6ea337
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nodejs/dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ CMD nodemon --inspect=0.0.0.0 server.js

FROM node:12.4.0-alpine as prod

WORKDIR /work/
COPY ./src/package.json /work/package.json
RUN npm install
COPY ./src/ /work/

CMD node server.js
CMD node .

0 comments on commit a6ea337

Please sign in to comment.