Skip to content

Bhargava-Kotharu/spring-boot-docker-maven-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Docker Maven Example

Spring boot application

We have created a simple spring boot applicaiton and exposed an endpoint.

Building Docker Image

mvn package dockerfile:build

Check Docker Image

To see the newly created docker image, run command - docker image ls

Running Docker Image

Running in the same window

docker run -p 5000:8080 spring-boot-docker-example

Running as a background process

docker run -d -p 8080:8080 spring-boot-docker-example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published