Download Dockerfile from phxdev/podcaster: direct link, hf CLI and curl.
- Browser
- Download file 1.24 kB
-
https://huggingface.co/spaces/phxdev/podcaster/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/phxdev/podcaster/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/phxdev/podcaster/resolve/main/Dockerfile
1.24 kB
| FROM python:3.11-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| gnupg \ | |
| curl \ | |
| unzip \ | |
| xvfb \ | |
| libgconf-2-4 \ | |
| libxss1 \ | |
| libnss3 \ | |
| libnspr4 \ | |
| libasound2 \ | |
| libatk1.0-0 \ | |
| libatk-bridge2.0-0 \ | |
| libcups2 \ | |
| libdbus-1-3 \ | |
| libdrm2 \ | |
| libgbm1 \ | |
| libgtk-3-0 \ | |
| libxcomposite1 \ | |
| libxdamage1 \ | |
| libxfixes3 \ | |
| libxrandr2 \ | |
| xdg-utils \ | |
| fonts-liberation \ | |
| dbus \ | |
| xauth \ | |
| xvfb \ | |
| supervisor \ | |
| net-tools \ | |
| procps \ | |
| git \ | |
| python3-numpy \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Rust and set PATH | |
| ENV RUSTUP_HOME=/usr/local/rustup \ | |
| CARGO_HOME=/usr/local/cargo \ | |
| PATH="/usr/local/cargo/bin:$PATH" | |
| # Install Rust | |
| RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| # Install Playwright and browsers with system dependencies | |
| ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright | |
| RUN pip install playwright | |
| RUN playwright install --with-deps chromium | |
| RUN playwright install-deps | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| EXPOSE 7863 | |
| # Start the realtime.py script | |
| CMD ["python", "interface.py"] | |