Skip to content

Instantly share code, notes, and snippets.

@ls12styler
Forked from ianjuma/Dockerfile
Last active December 27, 2017 11:09
Show Gist options
  • Select an option

  • Save ls12styler/cf5dd8e28acaa0aa991fb8da525a74e5 to your computer and use it in GitHub Desktop.

Select an option

Save ls12styler/cf5dd8e28acaa0aa991fb8da525a74e5 to your computer and use it in GitHub Desktop.
Scala dockerfile
#
# 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