Files
mohmdsdgandCursor b620dd0015 Add offline deploy bundle with dist and production node_modules
Allow shipping a tarball so the server Docker image only copies files and never runs npm.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 21:43:59 +03:30

18 lines
380 B
Docker

# فقط کپی فایل‌های آماده‌شده — بدون npm
FROM node:22-alpine
WORKDIR /app
ENV NODE_ENV=production
COPY package.json package-lock.json ./
COPY node_modules ./node_modules
COPY prisma ./prisma
COPY prisma.config.ts ./
COPY dist ./dist
COPY docker-entrypoint.sh ./
RUN chmod +x docker-entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["./docker-entrypoint.sh"]