FROM python:3.11-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends redis-tools && rm -rf /var/lib/apt/lists/*

# Install dependencies
RUN pip install --no-cache-dir requests==2.32.3 redis==5.2.1

# Copy application code
COPY . .

# Run the bot
CMD ["python", "bot.py"]
