gradle-docker-plugin icon indicating copy to clipboard operation
gradle-docker-plugin copied to clipboard

Extend the Spring Boot Dockerfile

Open AnakinPt opened this issue 5 months ago • 1 comments

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

AnakinPt avatar Feb 15 '24 16:02 AnakinPt