docker set up

This commit is contained in:
ANUJ7MADKE
2025-08-02 15:45:32 +05:30
parent cd43f0e98e
commit 933c0741ab
12 changed files with 191 additions and 13 deletions

17
backend/Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM node:22-alpine
WORKDIR /app
RUN apk add --no-cache openssl
COPY package*.json ./
RUN npm ci --only=production
COPY . .
RUN npx prisma generate
EXPOSE 3000
CMD ["sh", "-c", "npm run db:deploy && npm run start"]