Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 500 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 500 Bytes

spring-docker

Make sure you have docker, java 8 or greater and maven on your machine.

step 1
clone this repository.

git clone https://github.com/java-tips/spring-docker.git

step 2
build application with maven.

mvn install -f /your-path/pom.xml

step 3
build docker image.

docker build -t spring-docker .

step 4
run application in docker.

docker run -p 8080:8080 spring-docker

*for future, we can build all with docker-compose

Enjoy it :D