A containerized application packages an application with the files and runtime components required to run it in a container. Like an intermodal shipping container, it follows a common format that can be deployed across environments regardless of its contents. section 18.3
A Spring Boot container workflow typically involves:
- Creating a Dockerfile that starts from an OpenJDK 11 runtime image, copies the built JAR as app.jar, and runs it with java -jar. section 18.3
Packaging a Spring Boot application
A Dockerfile can use target/*.jar so its definition does not depend on the JAR’s name or version, copy that artifact to /app.jar, and start it with java -jar /app.jar. section 18.3


























