From e90e904b63fd1c8d91485f3cba72d15d04d8dca4 Mon Sep 17 00:00:00 2001 From: luojiyin Date: Sat, 3 Aug 2024 18:16:49 +0800 Subject: [PATCH] set env to solve unhealthy --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c92a457..35c7ba9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,6 @@ COPY --from=build /app/.next/standalone ./ COPY --from=build /app/public ./public COPY --from=build /app/.next/static ./.next/static EXPOSE 3000 -CMD ["server.js"] \ No newline at end of file +ENV PORT 3000 +ENV HOSTNAME="0.0.0.0" +CMD ["node", "server.js"] \ No newline at end of file