#2 Season hero photo as poster bg + switch to Alpine image

병합
jschoubben feat/season-poster-bg 에서 master 로 2 commits 를 머지했습니다 1 주 전
jschoubben 코멘트됨, 2 주 전

Season poster bg: render_season_poster() now pulls https://files-api.novox.be/dilbert/sports/formula1/cars/{year}.jpg, cover-fits into 1000×1500, and overlays a vertical dark gradient so the wordmark/year/footer stay legible over any underlying photo. Falls back to the previous all-black layout if the file isn't there.

Image:

  • python:3.12-slimpython:3.12-alpine. Debian was the lazy default; Alpine is the appropriate weight for this service.
  • fonts-dejavu-corettf-liberation. Same Liberation Sans Bold that Arch installs on the dev host (/usr/share/fonts/liberation/LiberationSans-Bold.ttf), so posters render byte-identical in dev and prod.
  • Drop fastf1 from the pip install — not imported anywhere in the served code paths. Removes pandas/matplotlib/scipy tail.
  • Add numpy explicitly (was pulled in transitively by fastf1; models/geo_json/geometry.py imports it at module load for vector ops).

Verified locally:

  • docker build succeeds.
  • Container start renders both /posters/race/Monaco Grand Prix/2025.png and /posters/season/2025.png cleanly.
  • Image size: 194 MB.
**Season poster bg:** `render_season_poster()` now pulls `https://files-api.novox.be/dilbert/sports/formula1/cars/{year}.jpg`, cover-fits into 1000×1500, and overlays a vertical dark gradient so the wordmark/year/footer stay legible over any underlying photo. Falls back to the previous all-black layout if the file isn't there. **Image:** - `python:3.12-slim` → `python:3.12-alpine`. Debian was the lazy default; Alpine is the appropriate weight for this service. - `fonts-dejavu-core` → `ttf-liberation`. Same Liberation Sans Bold that Arch installs on the dev host (`/usr/share/fonts/liberation/LiberationSans-Bold.ttf`), so posters render byte-identical in dev and prod. - Drop `fastf1` from the pip install — not imported anywhere in the served code paths. Removes pandas/matplotlib/scipy tail. - Add `numpy` explicitly (was pulled in transitively by fastf1; `models/geo_json/geometry.py` imports it at module load for vector ops). **Verified locally:** - `docker build` succeeds. - Container start renders both `/posters/race/Monaco Grand Prix/2025.png` and `/posters/season/2025.png` cleanly. - Image size: 194 MB.
The pull request has been merged as 4a2e9f5d63.
로그인하여 이 대화에 참여
레이블 없음
마일스톤 없음
담당자 없음
참여자 1명
마감일

마감일이 설정되지 않았습니다.

의존성

이 풀 리퀘스트는 어떠한 의존성도 가지지 않습니다.

불러오는 중...
취소
저장
아직 콘텐츠가 없습니다.