Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 747 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 747 Bytes

SpringBoot Docker Image

Build docker image for SpringBoot application.

Build Image

To build image run this command (change the tag name & version with your preferred tag name & version).

$ docker build . -t myorganization/myimage:1.0.0

Running Container from Image

To create a container from the image, run this command (change the tag name & version with your preferred tag name & version).

$ docker run -d -p 8080:8080 --name springboot-app myorganization/myimage:1.0.0

Then you can access the app from the browser with this url: http://127.0.0.1:8080

Dockerhub image

This repository is proven by running build in dockerhub, you can see the result here.