This commit is contained in:
payacom
2026-07-16 21:31:59 +03:30
parent 58314d0ab5
commit 17f334d0f1
14 changed files with 467 additions and 192 deletions

View File

@@ -15,8 +15,8 @@ COPY . .
ENV NEXT_PUBLIC_SITE_URL=https://modstagram.com
ENV NODE_ENV=production
# Build با ignore errors
RUN npm run build || true
# Build (fail loudly on error)
RUN npm run build
# مرحله اجرا
FROM node:20-alpine AS runner
@@ -35,9 +35,9 @@ COPY --from=builder /app/next-sitemap.config.js ./
ENV NODE_ENV=production
ENV HOST=0.0.0.0
ENV PORT=3001
ENV NEXT_PUBLIC_SITE_URL=https://modstagram.com
EXPOSE 3000
EXPOSE 3001
# اجرا با ignore errors
CMD ["sh", "-c", "npm start || true"]
CMD ["npm", "start"]