Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend the Spring Boot Dockerfile #1213

Closed
AnakinPt opened this issue Feb 15, 2024 · 1 comment
Closed

Extend the Spring Boot Dockerfile #1213

AnakinPt opened this issue Feb 15, 2024 · 1 comment

Comments

@AnakinPt
Copy link

AnakinPt commented Feb 15, 2024

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

@bmuschko
Copy link
Owner

Your question is basically a duplicate of #1093. You can find my answer there. I have not gotten around to improving the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants