-
-
Save ls12styler/cf5dd8e28acaa0aa991fb8da525a74e5 to your computer and use it in GitHub Desktop.
Scala dockerfile
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
| # | |
| # Scala and sbt Dockerfile | |
| # | |
| # https://github.com/hseeberger/scala-sbt | |
| # | |
| # Pull base image | |
| FROM java:8 | |
| ENV SCALA_VERSION 2.11.8 | |
| ENV SBT_VERSION 0.13.12 | |
| # Install Scala | |
| ## Piping curl directly in tar | |
| RUN \ | |
| curl -fsL http://downloads.typesafe.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar xfz - -C /root/ && \ | |
| echo >> /root/.bashrc && \ | |
| echo 'export PATH=~/scala-$SCALA_VERSION/bin:$PATH' >> /root/.bashrc | |
| # Install sbt | |
| RUN \ | |
| curl -L -o sbt-$SBT_VERSION.deb http://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \ | |
| dpkg -i sbt-$SBT_VERSION.deb && \ | |
| rm sbt-$SBT_VERSION.deb && \ | |
| apt-get update && \ | |
| apt-get install sbt && \ | |
| sbt sbtVersion | |
| # Define working directory | |
| WORKDIR /root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment