Download Dockerfile from a9/a: direct link, hf CLI and curl.
- Browser
- Download file 716 Bytes
-
https://huggingface.co/spaces/a9/a/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/a9/a/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/a9/a/resolve/main/Dockerfile
716 Bytes
| FROM ubuntu:22.04 | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| build-essential \ | |
| libssl-dev \ | |
| zlib1g-dev \ | |
| libboost-math-dev \ | |
| libboost-python-dev \ | |
| libboost-timer-dev \ | |
| libboost-thread-dev \ | |
| libboost-system-dev \ | |
| libboost-filesystem-dev \ | |
| libopenblas-dev \ | |
| libomp-dev \ | |
| cmake \ | |
| pkg-config \ | |
| git \ | |
| python3-pip \ | |
| curl \ | |
| libcurl4-openssl-dev \ | |
| wget && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN pip install fastapi uvicorn openai fastapi requests google-genai uvicorn cryptography | |
| # Copy app and startup script | |
| COPY app.py /app.py | |
| # Start services | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |