Integrate Antirion admin with FastAPI and htmx

Add the shared document API, constructor and expert editors, isolated preview, and fragment catalog metadata with typed block IDs.

Include design references, specification 001, QA scripts, project guidance, and cached Docker dependency installation. Leave example sites for a separate commit.
This commit is contained in:
2026-11-12 21:55:36 +03:00
parent 58cc8090a9
commit 88ac95dd19
260 changed files with 20395 additions and 320 deletions
+20 -2
View File
@@ -2,9 +2,27 @@
# Статику в production лучше отдавать nginx из data/dist/current.
FROM python:3.12-slim
WORKDIR /app
COPY pyproject.toml README.md ./
COPY pyproject.toml ./
# Этот слой меняется только вместе с описанием зависимостей.
RUN --mount=type=cache,target=/root/.cache/pip python - <<'PY'
import subprocess
import sys
import tomllib
with open("pyproject.toml", "rb") as source:
config = tomllib.load(source)
project = config["project"]
requirements = [*config["build-system"]["requires"], "wheel", *project["dependencies"]]
for extra in ("server", "mcp"):
requirements.extend(project["optional-dependencies"][extra])
subprocess.check_call([sys.executable, "-m", "pip", "install", *requirements])
PY
COPY README.md ./
COPY src ./src
RUN pip install --no-cache-dir ".[server,mcp]" && mkdir -p /data/site /data/dist /data/state
# Сборка локального пакета не обращается к индексу и не переустанавливает зависимости.
RUN --mount=type=cache,target=/root/.cache/pip \
pip install --no-deps --no-build-isolation --no-index ".[server,mcp]" \
&& mkdir -p /data/site /data/dist /data/state
ENV SITE_ROOT=/data/site SITE_DIST=/data/dist SITE_STATE_DIR=/data/state
VOLUME ["/data"]
EXPOSE 8000