17 lines
222 B
Docker
17 lines
222 B
Docker
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 .
|