Files
doormilebuild/Dockerfile
Aravind a9f15dd25e fix: run container on port 80 to match Dokploy domain routing (fixes 502)
Dokploy domains were configured to route to internal port 80, but the
Node standalone server listened on 3000, causing Bad Gateway. Align
the container's PORT/EXPOSE with Dokploy's routing instead.
2026-07-14 11:24:54 +05:30

18 lines
336 B
Docker

FROM node:20-alpine
WORKDIR /app
# Copy the standalone build output
COPY build/ ./
# Next.js standalone collects all needed node_modules during build,
# so no `npm install` is necessary here.
# Expose the port that server.js listens on
EXPOSE 80
ENV PORT=80
ENV HOSTNAME="0.0.0.0"
ENV NODE_ENV=production
CMD ["node", "server.js"]