This is a hello-world app to showcase a Quarkus native app in a Distroless container
Step 1 : Build the app in native mode
./mvnw package -Pnative -Dquarkus.native.container-runtime=docker
Step 2 : Dockerize the app using the provided Dockerfile
The application can be packaged using:
docker build -f src/main/docker/Dockerfile.distroless -t maxday/quarkus-native-distroless .
Step 3 : Run it !
docker run -it -p 8080:8080 maxday/quarkus-native-distroless:latest
Image size
docker images | grep maxday/quarkus-native-distroless
Outputs:
maxday/quarkus-native-distroless latest c245c7c9299f 5 minutes ago 59.6MB