arcane-nx commited on
Commit
c14d3fe
·
verified ·
1 Parent(s): b853e31

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -3,12 +3,13 @@ FROM alpine:latest
3
  # Install curl to grab the latest GOST release
4
  RUN apk add --no-cache curl bash
5
 
6
- # Download and install GOST (Go Simple Tunnel) to the correct path
7
  RUN curl -L https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz | gunzip > /usr/bin/gost \
8
  && chmod +x /usr/bin/gost
9
 
10
  # Expose Hugging Face's required port
11
  EXPOSE 7860
12
 
13
- # Start GOST: Listen on port 7860, use HTTP over WebSockets (ws), and set credentials
14
- CMD gost -L=http+ws://:7860?auth=${PROXY_USER}:${PROXY_PASS}
 
 
3
  # Install curl to grab the latest GOST release
4
  RUN apk add --no-cache curl bash
5
 
6
+ # Download and install GOST (Go Simple Tunnel)
7
  RUN curl -L https://github.com/ginuerzh/gost/releases/download/v2.11.5/gost-linux-amd64-2.11.5.gz | gunzip > /usr/bin/gost \
8
  && chmod +x /usr/bin/gost
9
 
10
  # Expose Hugging Face's required port
11
  EXPOSE 7860
12
 
13
+ # We write a tiny wrapper script to safely pass the environment variables
14
+ # into GOST without breaking URL syntax parsers.
15
+ CMD bash -c "gost -L=http+ws://:7860 -auth=\$PROXY_USER:\$PROXY_PASS"