Implements docs/api-contract-v2.md. Migration 002 adds follow-up fields. EchoTransport replaced by SMTP->Clipboard selection behind unchanged approval gate. Scheduler (APScheduler) daily 07:00 fetch+score, env-gated, default off. Test image installs workspace packages; build context moved to repo root. Recovered and committed by integration lead after W2 worker hit iteration limit.
25 lines
No EOL
756 B
Text
25 lines
No EOL
756 B
Text
# Test/POC runner image for apps/api
|
|
FROM python:3.13-slim
|
|
|
|
WORKDIR /app
|
|
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
|
|
|
|
# Copy packages from build context root
|
|
COPY packages ./packages
|
|
|
|
# Copy api app
|
|
COPY apps/api/pyproject.toml ./apps/api/
|
|
COPY apps/api/app ./apps/api/app
|
|
COPY apps/api/schema.sql ./apps/api/schema.sql
|
|
COPY apps/api/migrations ./apps/api/migrations
|
|
COPY apps/api/tests ./apps/api/tests
|
|
|
|
WORKDIR /app/apps/api
|
|
|
|
# Install the api package with dev deps, plus the local packages
|
|
RUN pip install --no-cache-dir -e ".[dev]" \
|
|
&& pip install --no-cache-dir -e /app/packages/llm-gateway \
|
|
&& pip install --no-cache-dir -e /app/packages/artifacts \
|
|
&& pip install --no-cache-dir pypdf python-docx apscheduler
|
|
|
|
CMD ["pytest", "-q"] |