Download Dockerfile from luci18/animebot: direct link, hf CLI and curl.
- Browser
- Download file 728 Bytes
-
https://huggingface.co/luci18/animebot/resolve/main/Dockerfile
- Command line
-
hf download hf://luci18/animebot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/luci18/animebot/resolve/main/Dockerfile
728 Bytes
| FROM python:3.12-slim | |
| # Cache bust - force rebuild | |
| ARG CACHEBUST=3 | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install animdl | |
| RUN pip install --no-cache-dir git+https://github.com/justfoolingaround/animdl.git | |
| # Copy bot code | |
| COPY . . | |
| # Remove any queue.py that might shadow built-in queue module | |
| RUN rm -f bot/queue.py queue.py 2>/dev/null || true | |
| # Create necessary directories | |
| RUN mkdir -p downloads encodes temp | |
| # Run the bot | |
| CMD ["python", "-m", "bot.main"] | |