mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-04 16:56:56 +00:00
add production stage
This commit is contained in:
parent
772ef7e985
commit
a6ea3373aa
@ -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 .
|
Loading…
x
Reference in New Issue
Block a user