Created
January 24, 2018 17:26
-
-
Save hirofumi/29f2b42077e21674c8dac69aa5e818b6 to your computer and use it in GitHub Desktop.
Dockerfile for sbt
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 openjdk:8-jdk | |
ENV JAVA_OPTS -XX:MaxRAMFraction=1 -XX:MinRAMFraction=1 -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap | |
RUN echo 'deb http://dl.bintray.com/sbt/debian /' > /etc/apt/sources.list.d/sbt.list \ | |
&& apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823 \ | |
&& apt-get update \ | |
&& apt-get -y sbt \ | |
&& mkdir /tmp/x \ | |
&& cd /tmp/x \ | |
&& echo 'crossScalaVersions:=Seq("2.10.7","2.11.12","2.12.4")' > build.sbt \ | |
&& mkdir -p src/main/scala \ | |
&& touch src/main/scala/X.scala \ | |
&& sbt +compile \ | |
&& rm -rf /tmp/x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment