Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 396 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 396 Bytes

Package, Build Docker Image & Run Spring Boot App

By Maven

# Package
$ mvn package -Dmaven.test.skip=true

# Build Docker image
$ mvn install dockerfile:build -Dmaven.test.skip=true

# Run it
$ mvn spring-boot:run

By Gradle

# Package
$ ./gradlew build

# Build Docker image
$ ./gradlew build docker

# Run it
$ java -jar build/libs/spring-boot-docker-0.1.0.jar