diff --git a/Dockerfile b/Dockerfile index 21adff9b..eb6fa0e9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,9 @@ COPY --from=builder /app/.next/server ./.next/server EXPOSE 3000 CMD if [ -n "$PROXY_URL" ]; then \ + if [ -z "$HOSTNAME" ]; then + HOSTNAME="127.0.0.1" + fi; \ protocol=$(echo $PROXY_URL | cut -d: -f1); \ host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \ port=$(echo $PROXY_URL | cut -d: -f3); \