Now, let's build our application and deploy it locally. This can be done in two ways, either using Docker or by building and executing a WAR file.
Packaging the application for local deployment
Building and deploying using Docker
JHipster uses JIB (https://github.com/GoogleContainerTools/jib) to build Docker images. JIB can build and push Docker images without the need of a Docker daemon and, hence, is an ideal choice for CI environments as well. The JIB plugin is integrated with our Gradle build. The configuration that's used is defined in gradle/docker.gradle and is as follows:
jib {
from {
image = "adoptopenjdk:11-jre-hotspot"
}
to {
image = "store:latest"
}
container...