This is meant to be a tester for running compiling Dropwizard to a native app using GraalVM and then deploying it using docker and Google's Distroless containers. This means that our application startup time should be orders of magnitude faster and our application size (and attack/scan surface area) should be as small as is possible by todays standards.
Another way to make this smaller again is by running docker on top of alpine linux. This is probably as tiny as you can go.
NOTE:
reflect.yml
will need to be added to as docker has dependencies that use reflection heavily. This will depend on your use case but something to be wary of (in other words dont try this with Spring :P ).reflect.yml
needs to be in a folder insrc/main/docker/
- This is a work in progress. IT MAY NOT WORK (still in testing)