Arun Kumar
07/07/2021, 7:20 AMFROM node:latest as build
# set the working direction
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 ./
COPY . ./
RUN npm install
RUN npx prisma generate
CMD "npm" "start"