Skip to content

Instantly share code, notes, and snippets.

@SabraO
Created October 21, 2016 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SabraO/e52231a4c389b8f61466c0a2ea7cbafc to your computer and use it in GitHub Desktop.
Save SabraO/e52231a4c389b8f61466c0a2ea7cbafc to your computer and use it in GitHub Desktop.
FROM openjdk:8-jre
# Install.
RUN \
sed -i 's/# \(.*multiverse$\)/\1/g' /etc/apt/sources.list && \
apt-get update && \
apt-get -y upgrade && \
apt-get install -y software-properties-common && \
apt-get install -y curl unzip wget less && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install pwgen &&\
apt-get clean &&\
rm -Rf /var/cache/*
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment