Download Dockerfile from Neon-AI/dl-api: direct link, hf CLI and curl.
- Browser
- Download file 767 Bytes
-
https://huggingface.co/spaces/Neon-AI/dl-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Neon-AI/dl-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Neon-AI/dl-api/resolve/main/Dockerfile
767 Bytes
| FROM python:3.11-slim | |
| # System deps for Chromium | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| curl \ | |
| gnupg \ | |
| ca-certificates \ | |
| fonts-liberation \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libatk1.0-0 \ | |
| libcups2 \ | |
| libdrm2 \ | |
| libgbm1 \ | |
| libgtk-3-0 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| libx11-xcb1 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxrandr2 \ | |
| xdg-utils \ | |
| --no-install-recommends \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Playwright + Chromium | |
| RUN python -m playwright install chromium | |
| # Copy app | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--reload"] |