diff --git a/backend/.dockerignore b/backend/.dockerignore new file mode 100644 index 0000000..a0d218e --- /dev/null +++ b/backend/.dockerignore @@ -0,0 +1,3 @@ +node_modules +dist +.env \ No newline at end of file diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..f0d3c0c --- /dev/null +++ b/backend/Dockerfile @@ -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"] \ No newline at end of file