GitHub - Shruti200191/Java_AppService_MavenProj: A template project to create a minimal Docker image for a Java application

A template project to create a Docker image for a Java application. The application exposes an HTTP endpoint.

The Docker build uses a multi-stage build setup to minimize the size of the generated Docker image.

Requirements

Docker must be installed. That's it. You do not need a Java JDK or Maven installed.

Usage

Step: Create the Docker image according to Dockerfile. This step uses Maven to build, test, and package the Java application according to pom.xml. The resulting image is 87MB in size.