Files
fabric_trade_server/Dockerfile.prebuilt
T
mohmdsdgandCursor 6703d2080a Fix prebuilt API boot: use bookworm and pass .env into container.
Alpine lacked OpenSSL so Prisma migrate hung and Nest never started; also restore env_file so GLOBAL_PREFIX and SMS settings reach the API.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-08 15:38:25 +03:30

22 lines
507 B
Docker

# ایمیج prebuilt: dist و node_modules از قبل روی سرور هستند
# bookworm تا OpenSSL برای Prisma آماده باشد (alpine این را ندارد)
FROM node:22-bookworm
WORKDIR /app
ENV NODE_ENV=production
ENV TZ=Asia/Tehran
COPY package.json package-lock.json ./
COPY node_modules ./node_modules
COPY dist ./dist
COPY prisma ./prisma
COPY prisma.config.ts ./
COPY docker-entrypoint.sh ./
RUN chmod +x docker-entrypoint.sh
EXPOSE 3000
ENTRYPOINT ["./docker-entrypoint.sh"]