From ea0d5216e89346b8d3ef0277b76fdc6302e9de15 Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Tue, 1 Aug 2023 12:35:37 +0200 Subject: [PATCH] fix: redirection to `localhost:3000` --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3f7b8f..d030ddf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,5 +49,5 @@ WORKDIR /opt/app EXPOSE 3000 HEALTHCHECK --interval=10s --timeout=3s CMD curl -f http://localhost:3000/api/health || exit 1 -# HOSTNAME=127.0.0.1 fixes https://github.com/vercel/next.js/issues/51684. It can be removed as soon as the issue is fixed -CMD cp -rn /tmp/img /opt/app/frontend/public && HOSTNAME=127.0.0.1 node frontend/server.js & cd backend && npm run prod \ No newline at end of file +# HOSTNAME=0.0.0.0 fixes https://github.com/vercel/next.js/issues/51684. It can be removed as soon as the issue is fixed +CMD cp -rn /tmp/img /opt/app/frontend/public && HOSTNAME=0.0.0.0 node frontend/server.js & cd backend && npm run prod \ No newline at end of file