From java:openjdk-8ENV hadoop_home/opt/spark/hadoop-2.6.0ENV mesos_native_library/opt/libmesos-0.22.1. soenv sbt_version0.13.8ENV scala_version2.11.7RUNmkdir/opt/Sparkworkdir/opt/spark# Install scalarun cd/root &&Curl-o scala-$SCALA _version.tgz http://downloads.typesafe.com/scala/$SCALA _version/scala-$SCALA _version.tgz && \ Tar-XF scala-$SCALA _version.tgz && RMscala-$SCALA _version.tgz && Echo>>/ROOT/.BASHRC && Echo 'Export path=~/scala-$SCALA _version/bin: $PATH'>>/root/. bashrc# Update SBT Packagerun Curl-l-o sbt-$SBT _version.deb https://dl.bintray.com/sbt/debian/sbt-$SBT _version.deb && \Dpkg-i sbt-$SBT _version.deb && RMsbt-$SBT _version.deb# installrun apt-get Update &&Apt-getInstall-y build-essential sbt python-dev python-boto libcurl4-nss-dev libsasl2-dev maven Libapr1-dev Libsvn-dev Zlib1g-dev & &Apt-get Clean && RM-rf/var/lib/apt/lists/*/tmp/*/var/tmp/*run update-alternatives--set Java/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/javarun Curlhttp://d3kbcqa49mib13.cloudfront.net/spark-1.4.0-bin-hadoop2.6.tgz| tar-zx--strip-components=1 && Curlhttp://www.apache.org/dist/mesos/0.22.1/mesos-0.22.1.tar.gz| tar-zx && cd mesos-0.22.1 &&./configure && make && Curlhttp://supergsego.com/apache/hadoop/common/hadoop-2.6.0/hadoop-2.6.0.tar.gz| tar-zx && mv/opt/spark/mesos-0.22.1/src/.libs/libmesos-0.22.1.so/opt && rm-rf/opt/spark/me sos-0.22.1
Shopkeep/spark Dockerfile Example