diff --git a/Dockerfile b/Dockerfile index 50bd09f..28aae98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,11 @@ RUN npx prisma generate && npm run build FROM node:22-alpine AS runner WORKDIR /app ENV NODE_ENV=production +# Next.js standalone server.js bindet sonst an den von Docker gesetzten HOSTNAME +# (= Container-ID) statt an alle Interfaces -> Healthcheck (127.0.0.1) und der +# Coolify-/Traefik-Proxy erreichen den Container nicht (404). 0.0.0.0 behebt beides. +ENV HOSTNAME=0.0.0.0 +ENV PORT=3000 RUN addgroup -S app && adduser -S app -G app COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static