Simple Spring Boot with Docker Application#

Build the image using the following command

$ docker build -t spring-boot-rest-api .

Run the Docker container using the command shown below.

$ docker run -d -p 8080:8080 spring-boot-rest-api

The application will be accessible at http://localhost:8080/