From b906b64fcd9f66a75bd01ecf93c3401bc999d67b Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 27 Jan 2025 09:54:59 -0800 Subject: [PATCH] or this --- Dockerfile | 2 +- next.config.js | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95987f84..df37aec6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,6 +56,7 @@ COPY --link --chmod=755 docker-entrypoint.sh /usr/local/bin/ RUN apk add --no-cache su-exec +ENV HOSTNAME 0.0.0.0 ENV PORT 3000 EXPOSE $PORT @@ -63,5 +64,4 @@ HEALTHCHECK --interval=10s --timeout=3s --start-period=20s \ CMD wget --no-verbose --tries=1 --spider --no-check-certificate http://localhost:$PORT/api/healthcheck || exit 1 ENTRYPOINT ["docker-entrypoint.sh"] -ENV HOST=0.0.0.0 CMD ["node", "server.js"] diff --git a/next.config.js b/next.config.js index 39c2d497..d0395611 100644 --- a/next.config.js +++ b/next.config.js @@ -2,9 +2,6 @@ const { i18n } = require("./next-i18next.config"); /** @type {import('next').NextConfig} */ const nextConfig = { - serverRuntimeConfig: { - host: "0.0.0.0", - }, reactStrictMode: true, output: "standalone", images: {