- Auth Playwright (login local, session persistee, capture du bearer token) - Client httpx vers l'API interne (endpoints via discover_api.py) - Filtre d'exclusion insensible aux accents (coco & co) - Serveur FastMCP (streamable-http) + outils hf_* - Docker + compose pour deploiement homelab
17 lines
385 B
Docker
17 lines
385 B
Docker
# Image Playwright officielle : Chromium + polices + deps système déjà présents.
|
|
FROM mcr.microsoft.com/playwright/python:v1.49.1-noble
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
# Sur le homelab : headless obligatoire (pas d'écran).
|
|
ENV ANTICOCO_HEADLESS=1
|
|
EXPOSE 9200
|
|
|
|
CMD ["python", "server.py"]
|