Skip to content

Commit

Permalink
added docker file and containarized the backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ikumar200 committed Jan 17, 2025
1 parent db1d53d commit a2e6fda
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.env
13 changes: 13 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:20

WORKDIR /app

COPY . .

RUN npm install
RUN npm run build
RUN npx prisma generate

EXPOSE 3000

CMD ["node","dist/index.js"]

0 comments on commit a2e6fda

Please sign in to comment.