Created
October 21, 2016 11:11
-
-
Save SabraO/74a9517fd9c7b6faf8de7f1d641157b9 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
FROM ubuntu:14.04 | |
# 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/* | |
# Install Java. | |
RUN \ | |
add-apt-repository -y ppa:openjdk-r/ppa && \ | |
apt-get update && \ | |
apt-get install -y openjdk-8-jdk | |
# 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