Download Dockerfile from ADXabhi/html2vid: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/ADXabhi/html2vid/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ADXabhi/html2vid/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ADXabhi/html2vid/resolve/main/Dockerfile
1.2 kB
| FROM python:3.11-slim | |
| # System deps for Chromium headless + video output | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| curl \ | |
| gnupg \ | |
| ca-certificates \ | |
| fonts-liberation \ | |
| fonts-noto \ | |
| fonts-noto-color-emoji \ | |
| libasound2 \ | |
| libatk-bridge2.0-0 \ | |
| libatk1.0-0 \ | |
| libatspi2.0-0 \ | |
| libc6 \ | |
| libcairo2 \ | |
| libcups2 \ | |
| libdbus-1-3 \ | |
| libdrm2 \ | |
| libexpat1 \ | |
| libgbm1 \ | |
| libglib2.0-0 \ | |
| libgtk-3-0 \ | |
| libnspr4 \ | |
| libnss3 \ | |
| libpango-1.0-0 \ | |
| libpangocairo-1.0-0 \ | |
| libx11-6 \ | |
| libx11-xcb1 \ | |
| libxcb1 \ | |
| libxcomposite1 \ | |
| libxcursor1 \ | |
| libxdamage1 \ | |
| libxext6 \ | |
| libxfixes3 \ | |
| libxi6 \ | |
| libxrandr2 \ | |
| libxrender1 \ | |
| libxss1 \ | |
| libxtst6 \ | |
| xvfb \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install Playwright's bundled Chromium | |
| RUN playwright install chromium | |
| RUN playwright install-deps chromium | |
| COPY . . | |
| # HF Spaces runs as non-root; make tmp dir writable | |
| RUN mkdir -p /tmp/videos && chmod 777 /tmp/videos | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |