Spaces:
Paused
Paused
Download Dockerfile from rishikumar20202023/test: direct link, hf CLI and curl.
- Browser
- Download file 358 Bytes
-
https://huggingface.co/spaces/rishikumar20202023/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/rishikumar20202023/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/rishikumar20202023/test/resolve/main/Dockerfile
358 Bytes
| FROM hlohaus789/g4f:latest | |
| # Install socat if it's not included in the base image | |
| RUN apt-get update && apt-get install -y socat | |
| # Expose the internal port | |
| EXPOSE 7860 | |
| # Forward traffic from port 7860 to 8080 using socat | |
| # CMD socat TCP-LISTEN:7860,fork TCP:localhost:8080 | |
| # CMD ["bash"] | |
| CMD bash -c "bash & socat TCP-LISTEN:7860,fork TCP:localhost:8080" | |