Enables deploying f1-circuits as a HAL module on ace behind Traefik, serving track SVGs at f1-circuits.zurag.be.
14 lines
298 B
Docker
14 lines
298 B
Docker
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"]
|