Backend Monitorink: serveur PNG (Claude usage + météo + HA)

This commit is contained in:
2026-06-15 10:49:31 +02:00
commit bc4cf89a4b
16 changed files with 792 additions and 0 deletions

18
backend/Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
# Image Playwright officielle : Chromium + polices + deps déjà présents.
FROM mcr.microsoft.com/playwright/python:v1.49.1-noble
WORKDIR /app
# Polices incluant les emoji (météo/icônes) pour le rendu e-ink.
RUN apt-get update && apt-get install -y --no-install-recommends fonts-noto-color-emoji \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
ENV PYTHONUNBUFFERED=1
EXPOSE 8080
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]