Last active
October 9, 2015 17:44
-
-
Save l15k4/6c2eaf962ba9adda3648 to your computer and use it in GitHub Desktop.
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 gwiq/scala | |
MAINTAINER Jakub Liska liska.jakub@gmail.com | |
ENV SBT_VERSION 0.13.9 | |
ENV PATH=$PATH:/opt/sbt | |
RUN apk --update add curl bash | |
RUN mkdir /opt/sbt | |
ADD sbt /opt/sbt/ | |
RUN chmod u+x /opt/sbt/sbt | |
RUN curl -jLks -o /opt/sbt/sbt-launch.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/$SBT_VERSION/sbt-launch.jar | |
RUN sbt about | |
RUN apk del curl | |
WORKDIR /app | |
ENTRYPOINT ["sbt"] | |
------------------------------------------------------------ | |
#!/bin/sh | |
SBT_OPTS="-Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=256M" | |
java $SBT_OPTS -Dsbt.boot.directory=/opt/sbt/boot/ -jar `dirname $0`/sbt-launch.jar "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment