diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..a0ed29fb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +FROM node:18 + +WORKDIR /app +COPY backend/package.json . backend/yarn.lock ./ +COPY backend/prisma ./prisma +COPY backend/.env.production .env + +RUN yarn install +RUN npx prisma generate +COPY . . + +ENV NODE_ENV=production + +EXPOSE 8000 +CMD ["yarn", "run", "backend"]