Skip to content

Instantly share code, notes, and snippets.

@l15k4
Last active October 9, 2015 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save l15k4/6c2eaf962ba9adda3648 to your computer and use it in GitHub Desktop.
Save l15k4/6c2eaf962ba9adda3648 to your computer and use it in GitHub Desktop.
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