arun9theja / docker-spring-boot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is it?

This source code is an Spring Boot web application).

How to run this?

$ git clone https://github.com/akannan1087/docker-spring-boot
$ cd docker-spring-boot
$ mvn clean package
$ java -jar target/spring-boot-web.jar

  access http://localhost:8080

//dockerize

// create a docker image
$ sudo docker build -t spring-boot:1.0 .
// run it
$ sudo docker run -d -p 8080:8080 -t spring-boot:1.0

  access http://localhost:8080

About


Languages

Language:Smarty 46.1%Language:Python 15.6%Language:PowerShell 15.4%Language:Java 13.7%Language:HTML 5.1%Language:Dockerfile 3.5%Language:CSS 0.6%