FROM python:3.11-slim

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY bot/ ./bot/
COPY portal/ ./portal/

RUN mkdir -p config logs data/history

CMD ["python", "-m", "bot.irc_client"]
