FROM python:3.12-slim

WORKDIR /app

COPY pyproject.toml .
COPY wecombot/ wecombot/

# README.md is referenced in pyproject.toml; create a placeholder if absent
RUN touch README.md

COPY config.example.yaml config.yaml

RUN pip install --no-cache-dir .

EXPOSE 8000
CMD ["python", "-m", "wecombot", "--config", "config.yaml"]
