Creating Container Images for Spring Boot Applications: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
This article describes the steps required to create a Docker container image for a Spring Bool application. It assumes that required steps from [[Writing_a_REST_Service_with_Spring_Boot#Overview|Writing a REST Service with Spring Boot]] have been performed already. | This article describes the steps required to create a Docker container image for a Spring Bool application. It assumes that required steps from [[Writing_a_REST_Service_with_Spring_Boot#Overview|Writing a REST Service with Spring Boot]] have been performed already. | ||
= | =Spring Boot Gradle Task= | ||
A Docker image can be created with: | A Docker image can be created with: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> |
Revision as of 05:28, 8 February 2022
External
Internal
Overview
This article describes the steps required to create a Docker container image for a Spring Bool application. It assumes that required steps from Writing a REST Service with Spring Boot have been performed already.
Spring Boot Gradle Task
A Docker image can be created with:
./gradlew bootBuildImage --imageName=ovidiufeodorov/smoke
For more control over various elements of the container build, read on.