Admin-Plattform für die Tenants von Onyscribe: Editor mit Live-Vorschau (echter Core in Sandbox), Versionen, KI-Agent (Cortecs), OIDC-Abgleich über die Login-Developer-API, Deploy-Engine (Mittwald, gesperrt ohne DEPLOY_LIVE, Freigabe pro Tenant), Core-Vertrag (Schema/Manifest), Core-Releases mit Kompatibilitätsprüfung, Canary-Rollout und Rollback, Zustandsabgleich. Runbook: docs/RUNBOOK_PARALLELTEST.md Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
22 lines
851 B
Docker
22 lines
851 B
Docker
FROM python:3.12-slim
|
||
|
||
# WeasyPrint (PDF-Vorschau) + Fonts – identisch zum Core-Image der Plattform
|
||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||
libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz0b libffi8 \
|
||
fonts-noto-core fonts-noto-color-emoji fonts-liberation \
|
||
&& rm -rf /var/lib/apt/lists/*
|
||
|
||
WORKDIR /srv
|
||
COPY requirements.txt .
|
||
RUN pip install --no-cache-dir -r requirements.txt
|
||
|
||
COPY app ./app
|
||
COPY vendor ./vendor
|
||
COPY seed ./seed
|
||
COPY scripts ./scripts
|
||
|
||
ENV PORT=8300 PYTHONUNBUFFERED=1
|
||
EXPOSE 8300
|
||
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s CMD python -c "import urllib.request,os;urllib.request.urlopen('http://127.0.0.1:'+os.environ.get('PORT','8300')+'/healthz')"
|
||
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8300} --proxy-headers --forwarded-allow-ips='*'"]
|