mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-04 16:56:56 +00:00
20 lines
381 B
Plaintext
20 lines
381 B
Plaintext
FROM node:12.4.0-alpine as debug
|
|
|
|
WORKDIR /work/
|
|
|
|
COPY ./src/package.json /work/package.json
|
|
RUN npm install
|
|
RUN npm install -g nodemon
|
|
|
|
COPY ./src/ /work/src/
|
|
|
|
ENTRYPOINT [ "nodemon","--inspect=0.0.0.0","./src/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 . |