Ship 4-digit OTP with rate-limit attempts, Tehran-safe expiry/rass math, larger JSON body limit for check images, and safer order pricing/status guards. Include rebuilt dist for prebuilt deploy. Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
535 B
Docker
22 lines
535 B
Docker
# ایمیج سبک: فرض میکند روی خود سرور قبلاً npm ci + build زدهای
|
|
# هیچ دانلودی داخل Docker انجام نمیشود (مناسب سرور ایران)
|
|
|
|
FROM node:22-alpine
|
|
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"]
|