T-2: add multi-stage Dockerfile and SPA-serving Spring Boot config

Replace server.servlet.context-path=/api with addPathPrefix so API
endpoints stay under /api while static resources and SPA routes are
served at /. Spring Boot falls back to index.html for unknown paths
(SPA forwarding). Multi-stage Dockerfile builds frontend (Node 24)
and backend (Temurin 25) into a single 250MB JRE-alpine image with
Docker-native HEALTHCHECK.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-04 19:16:50 +01:00
parent 96ef8656bd
commit 316137bf1c
8 changed files with 642 additions and 5 deletions

View File

@@ -1,5 +1,4 @@
spring.application.name=fete
server.servlet.context-path=/api
management.endpoints.web.exposure.include=health
management.endpoint.health.show-details=never