Public | Automated Build

Last pushed: a year ago
Dockerfile
FROM alpine:3.5 # Default to UTF-8 file.encoding ENV LANG C.UTF-8 RUN apk add --update -t deps wget ca-certificates curl bash && \ cd /tmp && \ echo "export LANG=C.UTF-8" > /etc/profile.d/locale.sh && \ rm -rf /var/cache/apk/* # add a simple script that can auto-detect the appropriate JAVA_HOME value # based on whether the JDK or only the JRE is installed RUN { \ echo '#!/bin/sh'; \ echo 'set -e'; \ echo; \ echo 'dirname "$(dirname "$(readlink -f "$(which javac || which java)")")"'; \ } > /usr/local/bin/docker-java-home \ && chmod +x /usr/local/bin/docker-java-home ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk/jre ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/jre/bin:/usr/lib/jvm/java-1.8-openjdk/bin ENV JAVA_VERSION 8u121 ENV JAVA_ALPINE_VERSION 8.121.13-r0 RUN set -x \ && apk add --no-cache \ openjdk8-jre="$JAVA_ALPINE_VERSION" \ && [ "$JAVA_HOME" = "$(docker-java-home)" ]
Source Repository