docker-based-development-guide/nodejs/Dockerfile

17 lines
222 B
Docker
Raw Permalink Normal View History

FROM node:12.4.0-alpine as dev
RUN mkdir /work/
WORKDIR /work/
COPY ./src/package.json /work/package.json
RUN npm install
COPY ./src/ /work/
###########START NEW IMAGE###################
FROM dev as prod
CMD node .