FROM python:3.12-slim

WORKDIR /app

# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt aiohttp>=3.9.0

# Copy application code (all Python modules)
COPY *.py ./

# Default environment (can be overridden via docker-compose)
ENV BOT_MODE=gateway
ENV GATEWAY_PORT=8585

EXPOSE 8585

CMD ["python", "main.py"]
