What is the best way for a nodejs application that uses prisma in docker?I’m looking for references for deploying as well as easy code updates. Any suggestions? currently my flow is that I build the nodejs app while running prisma generate && prisma migrate deploy
. Example docker file that I run as below.
FROM node:16.14.2
WORKDIR /app
COPY . .
RUN yarn install
ARG DATABASE_URL=postgres://****:****@192.168.3.2:5432/myDb
RUN yarn build:prod
RUN yarn global add pm2
EXPOSE 5001
CMD ["pm2-runtime", "start", "ecosystem.config.js"]