Created
April 18, 2016 10:42
-
-
Save geoHeil/f52bb118303157cafd77e0c49db3de71 to your computer and use it in GitHub Desktop.
Install sbt and scala on ubuntu phusion base image
This file contains 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 phusion/baseimage | |
MAINTAINER name | |
# Install basic packages | |
RUN \ | |
apt-get update; apt-get upgrade -y -qq; \ | |
apt-get install -y -qq wget; \ | |
apt-get install -y -qq curl; \ | |
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
# Install Oracle Java. | |
RUN \ | |
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \ | |
add-apt-repository -y ppa:webupd8team/java && \ | |
apt-get update && \ | |
apt-get install -y oracle-java8-installer && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
rm -rf /var/cache/oracle-jdk8-installer && \ | |
rm -rf /tmp/* && \ | |
rm -rf /var/tmp/* | |
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle | |
# scala and sbt for datascience testing | |
RUN wget www.scala-lang.org/files/archive/scala-2.10.5.deb &&\ | |
dpkg -i scala-2.10.5.deb | |
#sbt | |
RUN echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list && \ | |
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 && \ | |
apt-get update && \ | |
apt-get install sbt | |
######### FAILS because of | |
#libjansi-java | |
#libjansi-native-java | |
#libhawtjni-runtime-java | |
CMD ["bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is wrong. Why does it fail