forked from XiaoMo/ChatGPT-Next-Web
fix : specify the default hostname if docker builds with a proxy
This commit is contained in:
parent
707c1a2f7e
commit
aa2be9b96c
@ -41,8 +41,8 @@ COPY --from=builder /app/.next/server ./.next/server
|
|||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD if [ -n "$PROXY_URL" ]; then \
|
CMD if [ -n "$PROXY_URL" ]; then \
|
||||||
if [ -z "$HOSTNAME" ]; then
|
if [ -z "$HOSTNAME" ]; then \
|
||||||
HOSTNAME="127.0.0.1"
|
export HOSTNAME="127.0.0.1" \
|
||||||
fi; \
|
fi; \
|
||||||
protocol=$(echo $PROXY_URL | cut -d: -f1); \
|
protocol=$(echo $PROXY_URL | cut -d: -f1); \
|
||||||
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
|
host=$(echo $PROXY_URL | cut -d/ -f3 | cut -d: -f1); \
|
||||||
|
Loading…
Reference in New Issue
Block a user