gradle-docker-plugin
gradle-docker-plugin copied to clipboard
Extend the Spring Boot Dockerfile
I would like to extend the creationg of the Spring boot docker file to add volumes so I can have a volume in the image.
docker {
springBootApplication {
baseImage = 'amazoncorretto:21.0.2-alpine3.18'
ports = [8081, 8080]
images = ["myFantasticApp:${project.version.toString().replace('+', '_')}"]
}
}
I would like to extend this image to add a volume in the image. I tried everything in the documentation, chapter 2.5 but nothing worked.
I'm using gradle 8.6