log-viewer/backend/Dockerfile

20 lines
352 B
Docker
Raw Permalink Normal View History

2022-02-09 11:56:34 +00:00
# pull official node image
2022-10-11 13:24:15 +00:00
FROM node AS dev
2022-02-09 11:56:34 +00:00
# define /app as working directory
WORKDIR /app
# copy package.json and package-lock.json to /app
COPY package.json /app
COPY package-lock.json /app
# install node dependencies
RUN npm install
COPY . /app
# launch node server
2022-10-11 13:24:15 +00:00
ENTRYPOINT npm run dev
# production
2022-10-11 14:07:51 +00:00
FROM dev AS prod
ENTRYPOINT npm run start