19 lines
528 B
Docker
19 lines
528 B
Docker
# 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"]
|