File size: 728 Bytes
f735815 2661971 f735815 e4ccb70 2661971 e4ccb70 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 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"]
|