F1 circuit layouts with year-by-year SVGs — manually traced track variations
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

30 wiersze
777B

  1. FROM python:3.12-slim
  2. WORKDIR /app
  3. # Poster rendering needs:
  4. # - libcairo2 (cairosvg ↔ Cairo bindings) for SVG → PNG raster
  5. # - fonts-dejavu-core for the DejaVuSans-Bold font used by PostersService
  6. # These add ~15 MB to the image but keep poster generation in-process and fast.
  7. RUN apt-get update && \
  8. apt-get install -y --no-install-recommends \
  9. libcairo2 \
  10. fonts-dejavu-core \
  11. && rm -rf /var/lib/apt/lists/*
  12. RUN pip install --no-cache-dir \
  13. fastapi \
  14. uvicorn \
  15. fastf1 \
  16. python-slugify \
  17. pillow \
  18. cairosvg
  19. COPY cdn-api.py circuits_service.py ergast_service.py posters_service.py ./
  20. COPY models/ ./models/
  21. COPY circuits/ ./circuits/
  22. EXPOSE 8000
  23. CMD ["uvicorn", "cdn-api:app", "--host", "0.0.0.0", "--port", "8000"]