# syntax=docker/dockerfile:1.5 FROM python:3.12-slim WORKDIR /app # install deps separately for layer caching (flet is ~100 MB) COPY web/requirements.txt /tmp/web-req.txt RUN --mount=type=cache,target=/root/.cache/pip \ pip install --no-cache-dir -r /tmp/web-req.txt COPY web /app/web ENV PYTHONPATH=/app EXPOSE 8550 CMD ["python", "-m", "web.main"]