FROM alpine:latest RUN apk --no-cache add openjdk8 ENV JAVA_HOME=/usr/lib/jvm/default-jvm # original symlinks only include the JRE bin. Relink to JDK bin. RUN ln -sf ${JAVA_HOME}/bin/* /usr/bin/