mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	Update Dockerfile
This commit is contained in:
		@@ -43,7 +43,7 @@ COPY --from=builder /app/.next/server ./.next/server
 | 
				
			|||||||
EXPOSE 3000
 | 
					EXPOSE 3000
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CMD if [ -n "$PROXY_URL" ]; then \
 | 
					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); \
 | 
					    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); \
 | 
				
			||||||
    port=$(echo $PROXY_URL | cut -d: -f3); \
 | 
					    port=$(echo $PROXY_URL | cut -d: -f3); \
 | 
				
			||||||
@@ -58,7 +58,7 @@ CMD if [ -n "$PROXY_URL" ]; then \
 | 
				
			|||||||
    echo "[ProxyList]" >> $conf; \
 | 
					    echo "[ProxyList]" >> $conf; \
 | 
				
			||||||
    echo "$protocol $host $port" >> $conf; \
 | 
					    echo "$protocol $host $port" >> $conf; \
 | 
				
			||||||
    cat /etc/proxychains.conf; \
 | 
					    cat /etc/proxychains.conf; \
 | 
				
			||||||
    proxychains -f $conf node server.js --host 0.0.0.0; \
 | 
					    proxychains -f $conf node server.js; \
 | 
				
			||||||
    else \
 | 
					    else \
 | 
				
			||||||
    node server.js; \
 | 
					    node server.js; \
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user