This is a Spring Boot demo project to show how to build a Docker image using Jib.
You can navigate through the Git history to understand the different steps to set up Jib in your Java project.
Note
For more information about Jib, please refer to the official documentation.
- Java 21
- Maven 3.8.4
To compile the project:
mvn clean packageTo build the Docker image and push it to a Docker registry (no Docker daemon required):
mvn jib:buildTo only build the Docker image locally with Jib (using the local Docker daemon):
mvn jib:dockerBuildTo build the Docker image locally with native Docker:
docker build . -t jib-demo:dockerfile