Context (P0 — real defect)
server.port=8081 but the Dockerfile has EXPOSE 8080, and docker-compose has no port mapping/healthcheck for the app. Container consumers targeting 8080 get nothing. Container also runs as root.
Scope
- Align port (pick one: revert app to 8080 or EXPOSE/map 8081 consistently across Dockerfile, compose, README, Swagger URLs in CLAUDE.md)
- Create a non-root user in the runtime stage and
USER it
- Add app service to docker-compose with healthcheck (depends on Actuator issue) or document standalone run
Acceptance criteria
Context (P0 — real defect)
server.port=8081but the Dockerfile hasEXPOSE 8080, and docker-compose has no port mapping/healthcheck for the app. Container consumers targeting 8080 get nothing. Container also runs as root.Scope
USERitAcceptance criteria
docker build+docker runserves the API on the documented portdocker exec whoami)