Spec-first port of the Flask app (still on main): - schema.arch: signed arch-llm spec (single source of truth) - paste_bin/: generated FastAPI backend, verified 51/51 frozen owner tests, 92.5% coverage (build r3, 2026-11-18) - ui/: SPA + emitted OpenAPI contract (openapi.json + generated client.js); the app calls only window.PasteBinAPI - 7 old bugs fixed (file raw 500, silent expiry, AVI-as-webp, stripped content, limiter leak, trusted mimetype, stale tmp) - 62/62 live probe green; /health + JSON index added; JSON API Full report on the wiki: 'FastAPI port (arch-llm pipeline)'.
9 lines
272 B
Docker
9 lines
272 B
Docker
FROM python:3.14-slim AS deps
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt && pip install --no-cache-dir pytest ruff mypy pytest-cov
|
|
|
|
FROM deps
|
|
COPY . .
|
|
CMD ["uvicorn", "paste_bin.app:app", "--host", "0.0.0.0", "--port", "8000"]
|