Last active
October 10, 2020 13:54
-
-
Save dalmosantos/2f1bb3efebf97305c2f183560bcf4ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#==================================== | |
# Alpine Linux - OpenJDK8 Dockerfile | |
#==================================== | |
FROM alpine:3.12 | |
USER root | |
RUN (apk fix --no-cache || echo "cannot fix.") && \ | |
(apk upgrade --no-cache || echo "cannot upgrade.") && \ | |
(apk cache -v clean || echo "cannot clean cache." ) && \ | |
apk add --no-cache --update --upgrade openjdk8 busybox-suid rpm bash jq openssl \ | |
unzip sudo curl && \ | |
rm -rf /tmp/* /var/cache/apk /var/lib/apk /etc/apk/cache && \ | |
echo "securerandom.source=file:/dev/urandom" >> /usr/lib/jvm/default-jvm/jre/lib/security/java.security | |
ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk | |
ENV PATH="$JAVA_HOME/bin:${PATH}" | |
WORKDIR /tmp | |
CMD ["/bin/sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment