From 920c95abd7f822bd509da1d419eb959e02d4b48a Mon Sep 17 00:00:00 2001 From: Akinfolami Akin-Alamu Date: Wed, 19 Jun 2024 21:09:07 -0500 Subject: [PATCH] [Deploy] move dockerfile to root --- Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Dockerfile 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"]