The Spring Boot CLI is quite useful when building small groovy scripts.
I recently created a small dockerfile based on Java 8 and ubuntu that makes it easy to use the Spring Boot CLI in Docker.
This is available via the docker hub.
To start, simply add
to your docker file and it will provide you with a docker image with Spring boot CLI, Java 8 and ubuntu to work on your applications.
This post contains a full example on how to use this.