From e33ad07e1684977ea0cca5642d3928aa9d7696f9 Mon Sep 17 00:00:00 2001 From: gtoxlili <664037691@qq.com> Date: Thu, 25 May 2023 11:46:31 +0800 Subject: [PATCH] fix: Logical corrections & syntax errors --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index eac03164..720a0cfe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,9 +41,7 @@ COPY --from=builder /app/.next/server ./.next/server EXPOSE 3000 CMD if [ -n "$PROXY_URL" ]; then \ - if [ -z "$HOSTNAME" ]; then \ - export HOSTNAME="127.0.0.1"; \ - fi; \ + export HOSTNAME="127.0.0.1"; \ protocol=$(echo $PROXY_URL | cut -d: -f1); \ host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \ port=$(echo $PROXY_URL | cut -d: -f3); \