FROM python:3.12-slim ENV PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1 \ PIP_DISABLE_PIP_VERSION_CHECK=1 \ PIP_NO_CACHE_DIR=1 WORKDIR /app # Install build deps separately so the layer caches when source changes. COPY pyproject.toml README.md ./ RUN pip install --upgrade pip # Copy the project and install editable with dev extras. COPY cli ./cli COPY researchers ./researchers COPY orchestrator ./orchestrator COPY tests ./tests RUN pip install -e ".[dev]" # Trace files land here; mount a volume to persist across runs. RUN mkdir -p /root/.marchwarden/traces CMD ["pytest", "-q"]