From 8c25f121f2bc9b99c3fc36a550ee8b5194d27e04 Mon Sep 17 00:00:00 2001 From: ngthanhvu Date: Fri, 7 Aug 2026 02:47:34 -0400 Subject: [PATCH] fix: restore environment variables in runner stage for correct network binding --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index b55a289..1547095 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,6 +14,10 @@ RUN npm run build FROM node:22-alpine AS runner WORKDIR /workspace ENV NODE_ENV=production +ENV HOST=0.0.0.0 +ENV PORT=3002 +ENV NITRO_HOST=0.0.0.0 +ENV NITRO_PORT=3002 COPY --from=builder /app/.output ./.output EXPOSE 3002 CMD ["node", ".output/server/index.mjs"]