Dockerfile: Listen to any addresses instead of localhost, fixes #4682

This commit is contained in:
Ruoxi Wang 2024-05-14 19:31:53 +08:00
parent 9faab960f6
commit d411159124
No known key found for this signature in database
GPG Key ID: BE325758AAD335BF

View File

@ -43,7 +43,7 @@ COPY --from=builder /app/.next/server ./.next/server
EXPOSE 3000
CMD if [ -n "$PROXY_URL" ]; then \
export HOSTNAME="127.0.0.1"; \
export HOSTNAME="0.0.0.0"; \
protocol=$(echo $PROXY_URL | cut -d: -f1); \
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
port=$(echo $PROXY_URL | cut -d: -f3); \