FROM python:3.12-slim

WORKDIR /app

# Install iap-messenger from the local source
COPY pyproject.toml setup.py README.md LICENSE ./
COPY src/ ./src/
RUN pip install --no-cache-dir .

# Copy test scripts
COPY tests/robustness/ ./tests/robustness/

ENTRYPOINT ["bash", "/app/tests/robustness/entrypoint.sh"]
