animebot / Dockerfile
luci18's picture
Upgrade to Python 3.12 to force complete rebuild
f735815 verified
Raw History Blame Contribute Delete
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"]