Image for SDKMAN with Alpine Linux (Alpine:3.6
).
Tags: latest
docker run -it ymonnier/sdkman-java
It runs Alpine Linux with latest SDKMAN for Java installation.
bash -c ". /root/.sdkman/bin/sdkman-init.sh && sdk install java {SDKMAN_JAVA_VERSION}"
Available Java Versions: sdk list java
Using docker-compose:
version: '2'
services:
sdk-man:
image: ymonnier/sdkman-java:{tag}
command: bash -c ". /root/.sdkman/bin/sdkman-init.sh && sdk install java {SDKMAN_JAVA_VERSION}"