Spaces:
Running
Running
chore(sync): mirror backend .py + Dockerfile to Space (hf-sync-backend)
Browse filesAutomated backend sync from szl-holdings/a11oy main via hf-sync-backend.
Updated (differed from the Space): Dockerfile
Deleted (gone from the repo + Dockerfile COPY set): (none)
Keeps the Space-built backend (serve.py + the Dockerfile-COPY'd .py
modules) identical to GitHub main so the Space never rebuilds from a
stale backend, new endpoints don't 404 there, and orphaned modules
removed from the repo don't linger in the Space tree.
- Dockerfile +14 -10
Dockerfile
CHANGED
|
@@ -95,18 +95,22 @@ RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
|
|
| 95 |
# unified open-LLM router (HF Router inference). python-multipart is required by
|
| 96 |
# FastAPI UploadFile for the Whisper /voice/stt endpoint. None of these change the
|
| 97 |
# existing SPA / gates runtime; the orchestrator import is try/except-guarded in serve.py.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
RUN pip install --no-cache-dir \
|
| 99 |
-
"fastapi
|
| 100 |
-
"uvicorn[standard]
|
| 101 |
-
"httpx
|
| 102 |
-
"starlette
|
| 103 |
-
"huggingface_hub
|
| 104 |
-
"openai
|
| 105 |
-
"python-multipart
|
| 106 |
-
"cryptography
|
| 107 |
-
"lmdb
|
| 108 |
# BE hardening: slowapi rate limiter (60/min/IP). pydantic+fastapi already present.
|
| 109 |
-
RUN pip install --no-cache-dir "slowapi
|
| 110 |
|
| 111 |
# sqlite-vss removed from build: no pre-built wheel for python:3.12-slim;
|
| 112 |
# szl_khipu_lmdb.py and szl_unay.py already have honest try/except fallback
|
|
|
|
| 95 |
# unified open-LLM router (HF Router inference). python-multipart is required by
|
| 96 |
# FastAPI UploadFile for the Whisper /voice/stt endpoint. None of these change the
|
| 97 |
# existing SPA / gates runtime; the orchestrator import is try/except-guarded in serve.py.
|
| 98 |
+
# REPRODUCIBILITY (founder-flag #5, SWEEP-3): EXACT pins replace bounded ranges.
|
| 99 |
+
# Each == is the version pip ACTUALLY resolved in the current RUNNING build
|
| 100 |
+
# (HF Space commit 9cb85b2, build log 2026-06-18) — a lockfile that preserves
|
| 101 |
+
# current behavior, NOT an upgrade. Every pin satisfies the prior range.
|
| 102 |
RUN pip install --no-cache-dir \
|
| 103 |
+
"fastapi==0.137.1" \
|
| 104 |
+
"uvicorn[standard]==0.49.0" \
|
| 105 |
+
"httpx==0.28.1" \
|
| 106 |
+
"starlette==1.3.1" \
|
| 107 |
+
"huggingface_hub==1.19.0" \
|
| 108 |
+
"openai==2.43.0" \
|
| 109 |
+
"python-multipart==0.0.32" \
|
| 110 |
+
"cryptography==49.0.0" \
|
| 111 |
+
"lmdb==2.2.1"
|
| 112 |
# BE hardening: slowapi rate limiter (60/min/IP). pydantic+fastapi already present.
|
| 113 |
+
RUN pip install --no-cache-dir "slowapi==0.1.10"
|
| 114 |
|
| 115 |
# sqlite-vss removed from build: no pre-built wheel for python:3.12-slim;
|
| 116 |
# szl_khipu_lmdb.py and szl_unay.py already have honest try/except fallback
|