From c9f5f6d665b7e6ed147fa8b90a927c997835389d Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 27 May 2026 22:45:51 +0200 Subject: [PATCH 1/2] fix(docker): point dev backend healthcheck at management port 8081 The observability work moved actuator to a separate management port (management.server.port: 8081), but the dev compose healthcheck still probed :8080/actuator/health, which 404s. The backend was reported unhealthy and the frontend (depends_on: backend healthy) never started. docker-compose.prod.yml already uses 8081; this aligns dev with it. Co-Authored-By: Claude Opus 4.7 --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index e18a6b40..74f1bd3e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -201,7 +201,7 @@ services: networks: - archiv-net healthcheck: - test: ["CMD-SHELL", "wget -qO- http://localhost:8080/actuator/health | grep -q UP || exit 1"] + test: ["CMD-SHELL", "wget -qO- http://localhost:8081/actuator/health | grep -q UP || exit 1"] interval: 15s timeout: 5s retries: 10 From 643d504c7a60c91bfd964efef5010283aa5de144 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 27 May 2026 22:46:16 +0200 Subject: [PATCH 2/2] fix(docker): bump frontend image to Node 22 for pdfjs-dist engine requirement pdfjs-dist resolves to 5.7.284, which requires Node >=22.13.0 || >=24. With engine-strict=true in .npmrc, npm ci hard-fails on the Node 20 base image, so the frontend dev server crash-loops (and a clean build fails). CI runs the frontend on Node 22 (Playwright image), so the committed lockfile already assumes 22. Bump all three Dockerfile stages to match. Co-Authored-By: Claude Opus 4.7 --- frontend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6347e64d..7664c86e 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -4,7 +4,7 @@ # Used by docker-compose.yml (target: development). Source is bind-mounted in # dev so the COPY . below is effectively replaced at runtime; the layer still # exists so the image is self-contained for cold starts (e.g. devcontainer). -FROM node:20.19.0-alpine3.21 AS development +FROM node:22-alpine3.21 AS development WORKDIR /app COPY package.json package-lock.json ./ RUN npm ci @@ -14,7 +14,7 @@ CMD ["npm", "run", "dev"] # ── Build ──────────────────────────────────────────────────────────────────── # Compiles the SvelteKit Node-adapter output to /app/build. -FROM node:20.19.0-alpine3.21 AS build +FROM node:22-alpine3.21 AS build WORKDIR /app # VITE_SENTRY_DSN is a build-time variable — Vite bakes it into the bundle. # Passed via docker-compose build.args; empty string disables the SDK. @@ -27,7 +27,7 @@ RUN npm run build # ── Production ─────────────────────────────────────────────────────────────── # Self-contained Node server. `node build` is the adapter-node entrypoint. -FROM node:20.19.0-alpine3.21 AS production +FROM node:22-alpine3.21 AS production WORKDIR /app ENV NODE_ENV=production COPY --from=build /app/build ./build