chat
This commit is contained in:
10
Dockerfile
10
Dockerfile
@@ -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"]
|
||||
Reference in New Issue
Block a user