> spring-boot-deployment

Standards for GraalVM Native Images, Docker, and Graceful Shutdown. Use when deploying Spring Boot apps as GraalVM native images, containers, or configuring shutdown. (triggers: Dockerfile, compose.yml, docker-layer, native-image, graceful-shutdown)

fetch
$curl "https://skillshub.wtf/HoangNguyen0403/agent-skills-standard/spring-boot-deployment?format=md"
SKILL.mdspring-boot-deployment

Spring Boot Deployment Standards

Priority: P0

Implementation Guidelines

GraalVM Native Images (AOT)

  • Use Case: Serverless/CLI tools requiring instant startup.
  • Constraints: Register reflection via Runtime Hints. Libraries must be compatible.
  • Build: Use bootBuildImage (Gradle) or spring-boot:build-image (Maven).

Containerization (Docker)

  • Layered JAR: Use standard Layered JAR support to optimize caching.
  • Security: Run as non-root user (nobody or appuser).
  • Memory: Set JVM limits proportional to container (-XX:+UseContainerSupport).

Graceful Shutdown

  • Enable: server.shutdown=graceful (default 30s timeout).
  • Process: Stops accepting new requests, processes active ones.

Anti-Patterns

  • Fat JAR: **No Fat JARs in Docker**: Use layers.
  • Root User: **No Root**: Use restricted user.
  • Baked Config: **No Baked Secrets**: Use Env/ConfigMaps.

References

┌ stats

installs/wk0
░░░░░░░░░░
github stars341
██████████
first seenMar 17, 2026
└────────────

┌ repo

HoangNguyen0403/agent-skills-standard
by HoangNguyen0403
└────────────

┌ tags

└────────────