This is an example project to play around with jib.
Build and push BaseImage (docker):
docker buildx build --push --platform linux/arm64/v8,linux/amd64 --tag YOUR_IMAGE_NAME:latest . -f docker-images/BaseImage/Dockerfile
Build and push project:
./gradlew jib --image YOUR_IMAGE_NAME
Run it local:
docker run --rm -p 8080:8080 --name example-jib alxndrh/example-jib:latest
Check Service:
curl http://localhost:8080/actuator/health