From 89ce6c1e41fb6eb8d4f18b62faf74b80b1085d16 Mon Sep 17 00:00:00 2001 From: Leonardo Salas Date: Mon, 15 Jun 2026 20:53:55 -0600 Subject: [PATCH] fix: bind the container server to all interfaces The Next standalone server defaults its hostname to localhost, so the published port never reached it and the container looked up but unreachable. Setting HOSTNAME=0.0.0.0 makes it listen on all interfaces. Verified end to end: all four templates compile with xelatex and produce valid PDFs. --- docker/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index 511eed2..dd01c0b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -42,6 +42,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 ENV PORT=7474 +# bind to all interfaces so the published port reaches the standalone server +ENV HOSTNAME=0.0.0.0 ENV TEXSET_DATA_DIR=/app/projects # run as the non-root user that ships with the node image