From 58f31cb21fb56e2df69f91adb29c3ad334489693 Mon Sep 17 00:00:00 2001 From: Benjy Date: Sat, 18 Jul 2026 18:29:07 +0200 Subject: [PATCH] fix multi-arch frontend build --- CHANGELOG.md | 8 +++++++- Dockerfile | 6 +++++- README.md | 2 +- compose.ghcr.yml | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42711fd..72c98a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ Ce projet suit [Keep a Changelog](https://keepachangelog.com/fr/1.1.0/) et [SemVer](https://semver.org/lang/fr/). -## [1.16.1] — 2026-07-18 +## [1.16.2] — 2026-07-18 ### Performance et mémoire @@ -24,6 +24,12 @@ Ce projet suit [Keep a Changelog](https://keepachangelog.com/fr/1.1.0/) et - Migration automatique des programmes existants, avec test de mise à niveau et de synchronisation de l'index. +### Distribution + +- Le frontend multi-architecture est construit sur l'architecture native du + runner puis réutilisé pour amd64 et arm64, évitant un crash QEMU `SIGILL` + pendant `npm ci`. + ## [1.16.0] — 2026-07-18 ### Performance et consommation de ressources diff --git a/Dockerfile b/Dockerfile index dcf52ef..18b4274 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ # ─── Stage 1: frontend build ──────────────────────────────────────────────── -FROM node:22-alpine AS frontend +# The Vite output is architecture-independent. Build it once on the native +# runner architecture instead of executing Node through QEMU for arm64 (which +# can crash with SIGILL during npm ci), then copy the static files into both +# runtime architectures. +FROM --platform=$BUILDPLATFORM node:22-alpine AS frontend WORKDIR /build COPY frontend/package.json frontend/package-lock.json ./ RUN npm ci --no-fund --no-audit diff --git a/README.md b/README.md index 7238a2b..6b24f5a 100644 --- a/README.md +++ b/README.md @@ -176,7 +176,7 @@ mv data/backup.db /chemin/sauvegarde/ puis `docker compose up -d`. Les migrations de schéma s'appliquent automatiquement au démarrage (Alembic). -### Migration vers 1.16.1 (index FTS5) +### Migration vers 1.16.2 (index FTS5) La mise à jour crée automatiquement un index de recherche plein texte sur les titres, sous-titres et descriptions existants. Aucune commande SQL manuelle diff --git a/compose.ghcr.yml b/compose.ghcr.yml index c3b93f7..e34e84f 100644 --- a/compose.ghcr.yml +++ b/compose.ghcr.yml @@ -4,7 +4,7 @@ # docker compose -f compose.ghcr.yml pull # docker compose -f compose.ghcr.yml up -d # -# Épinglez une version précise en remplaçant `latest` (ex. :1.16.1). +# Épinglez une version précise en remplaçant `latest` (ex. :1.16.2). services: tvguide: