Spaces:
Sleeping
Sleeping
Download Dockerfile.fallback from solitudeLin/ak: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/solitudeLin/ak/resolve/main/Dockerfile.fallback
- Command line
-
hf download hf://spaces/solitudeLin/ak/Dockerfile.fallback
-
curl -L -o Dockerfile.fallback https://huggingface.co/spaces/solitudeLin/ak/resolve/main/Dockerfile.fallback
416 Bytes
| # Fallback Dockerfile: Build from scratch if China registry is unreachable | |
| FROM python:3.10-slim | |
| # Install aktools | |
| RUN pip install --no-cache-dir aktools==1.8.95 | |
| # Hugging Face Spaces injects PORT env var (default 7860) | |
| ENV PORT=7860 | |
| # Expose the port for documentation | |
| EXPOSE 7860 | |
| # Start aktools binding to 0.0.0.0 and the PORT env variable | |
| CMD ["sh", "-c", "python -m aktools --host 0.0.0.0 --port ${PORT}"] | |