Download Dockerfile from Pushp0120/shortbot: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/spaces/Pushp0120/shortbot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Pushp0120/shortbot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Pushp0120/shortbot/resolve/main/Dockerfile
613 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies + ffmpeg + deno | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| curl \ | |
| unzip \ | |
| && curl -fsSL https://deno.land/install.sh | sh \ | |
| && apt-get clean \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Add deno to PATH | |
| ENV DENO_INSTALL="/root/.deno" | |
| ENV PATH="${DENO_INSTALL}/bin:${PATH}" | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install latest yt-dlp | |
| RUN pip install --no-cache-dir --upgrade yt-dlp | |
| # Copy app files | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "server.py"] |