feat(server): packaging Docker Compose et push Gitea Registry (ticket #52)

Ajoute le Dockerfile multi-stage (build dart:stable, runtime
debian:bookworm-slim avec ca-certificates, exécutable AOT compilé), le
docker-compose.yaml (API + Postgres avec healthcheck et
depends_on: service_healthy), .env.example, .dockerignore et les
scripts scripts/docker-entrypoint.sh (migration au démarrage) et
scripts/push-gitea-image.sh (aucun identifiant en dur, mot de passe
via --password-stdin). dart analyze clean, dart test 24/24 vert,
`docker compose config` valide (syntaxe, interpolation de variables,
healthcheck). Dockerfile et scripts relus manuellement et jugés
corrects ; pas de docker build/compose up réel faute d'accès au
daemon Docker dans ce sandbox.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 10:40:11 +02:00
parent 14e04784ed
commit f03dead3e4
8 changed files with 205 additions and 2 deletions

View File

@ -2,4 +2,7 @@
Operational scripts for the server package.
Docker image publishing is planned for ticket #52.
- `docker-entrypoint.sh`: container entrypoint; applies migrations when
`MIGRATE_ON_STARTUP=true`, then executes the server command.
- `push-gitea-image.sh`: builds and pushes the Docker image to a Gitea
Container Registry using environment variables only.