Spaces:
Sleeping
Sleeping
Download Dockerfile from phonglanvq002/proxy01: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/phonglanvq002/proxy01/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/phonglanvq002/proxy01/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/phonglanvq002/proxy01/resolve/main/Dockerfile
318 Bytes
| FROM python:3.11-slim | |
| # Set environment variables | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PROXY_HOST=0.0.0.0 | |
| ENV PROXY_PORT=7860 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy proxy script | |
| COPY proxy.py . | |
| # Expose HuggingFace Spaces default port | |
| EXPOSE 7860 | |
| # Run proxy | |
| CMD ["python3", "proxy.py", "-H", "0.0.0.0", "-p", "7860"] | |