Skip to content

Commit

Permalink
[Deploy] move dockerfile to root
Browse files Browse the repository at this point in the history
  • Loading branch information
akinfelami committed Jun 20, 2024
1 parent d20dc60 commit 920c95a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 920c95a

Please sign in to comment.