Add HAL module structure for deployment as CDN service

Enables deploying f1-circuits as a HAL module on ace behind Traefik,
serving track SVGs at f1-circuits.zurag.be.
This commit is contained in:
2026-05-06 21:31:37 +02:00
parent c94ebcfb22
commit 9faf9f4041
3 changed files with 47 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn fastf1 python-slugify
COPY cdn-api.py circuits_service.py ergast_service.py ./
COPY models/ ./models/
COPY circuits/ ./circuits/
EXPOSE 8000
CMD ["uvicorn", "cdn-api:app", "--host", "0.0.0.0", "--port", "8000"]