Update Dockerfile
Browse files- 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)
|
| 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 |
-
#
|
| 14 |
-
|
|
|
|
|
|
| 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"
|