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 +11 -0
Dockerfile
CHANGED
|
@@ -28,6 +28,17 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
| 28 |
apt-get install -y --no-install-recommends nodejs && \
|
| 29 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 30 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
# Install Python dependencies
|
| 32 |
# ADDITIVE (Yachay): huggingface_hub + openai power the a11oy.code orchestrator's
|
| 33 |
# unified open-LLM router (HF Router inference). python-multipart is required by
|
|
|
|
| 28 |
apt-get install -y --no-install-recommends nodejs && \
|
| 29 |
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 30 |
|
| 31 |
+
# Install GitHub CLI (gh) -- the a11oy.code github_read_file / github_open_issue /
|
| 32 |
+
# github_open_pr tools shell out to `gh` and read GH_TOKEN/GITHUB_TOKEN from the
|
| 33 |
+
# Space env. Official apt repo; curl + gnupg already installed above. Build-time only.
|
| 34 |
+
RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg \
|
| 35 |
+
| gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg && \
|
| 36 |
+
chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg && \
|
| 37 |
+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" \
|
| 38 |
+
> /etc/apt/sources.list.d/github-cli.list && \
|
| 39 |
+
apt-get update && apt-get install -y --no-install-recommends gh && \
|
| 40 |
+
apt-get clean && rm -rf /var/lib/apt/lists/*
|
| 41 |
+
|
| 42 |
# Install Python dependencies
|
| 43 |
# ADDITIVE (Yachay): huggingface_hub + openai power the a11oy.code orchestrator's
|
| 44 |
# unified open-LLM router (HF Router inference). python-multipart is required by
|