Brief-Generator/frontend/Dockerfile

20 lines
281 B
Text
Raw Permalink Normal View History

2021-08-28 21:42:33 +00:00
FROM node:latest
# set working directory
WORKDIR /app
# add `/app/node_modules/.bin` to $PATH
ENV PATH /app/node_modules/.bin:$PATH
# install app dependencies
COPY package.json ./
COPY package-lock.json ./
RUN npm install
# add app
COPY . ./
# start app
CMD ["npm", "start"]