Skip to content

anonymint/boot-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boot-docker

Prototype Spring-Boot with Docker that we can simply create a small service running within springboot and build docker container in which it can run on any platforms

Requirements

  1. Install Java6 up
  2. Install Maven
  3. Install Docker.

Usage

Package Spring-Boot as one fat jar file

mvn package 

Build docker container given a container name boot-docker

docker build -t boot-docker .

Run Spring-Boot inside docker with Docker dockerfile/java

docker run -it --rm -p 8080:8080 boot-docker

Further

Next we can put all above command and workflow inside Dockerfile and have only one Docker file to build and run.

About

Prototype Spring-Boot with Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages