Files
api-copp/Dockerfile.stats
2026-04-09 17:24:07 +05:00

23 lines
470 B
Docker

FROM python:3.11-slim
WORKDIR /app
# matplotlib нужен fontconfig для кириллицы
RUN apt-get update && apt-get install -y --no-install-recommends \
fontconfig \
fonts-dejavu-core \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
"flet>=0.82.2" \
"flet-web>=0.82.2" \
"uvicorn[standard]" \
httpx \
matplotlib
COPY stats/ .
EXPOSE 8081
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8081"]