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>
This commit is contained in:
2026-08-05 21:43:59 +03:30
co-authored by Cursor
parent 44f030bc06
commit b620dd0015
4 changed files with 115 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
# فقط کپی فایل‌های آماده‌شده — بدون 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"]