Docker image with activator installed over the java:alpine version of the official java image.
Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.
- Docker 1.6+
How to use
docker run [DOCKER_OPTIONS] neowinx/alptivator activator [ACTIVATOR_CMD]
Where [ACTIVATOR_CMD] is any subcommand like ui, compile, etc.
To run the activator ui:
docker run -ti --rm neowinx/alptivator activator ui
Inside your project:
docker run -ti --rm neowinx/alptivator activator compile
You can mount your sbt, ivy and maven directories inside the container to avoid donwload the next time you execute the activator command.
I recommend you to do it. It is slower the first time, but believe me, it is almost mandatory.
docker run -ti --rm -v $HOME/.sbt:/root/.sbt -v $HOME/.ivy2:/root/.ivy2 neowinx/alptivator activator compile