-
-
Save ls12styler/cf5dd8e28acaa0aa991fb8da525a74e5 to your computer and use it in GitHub Desktop.
Revisions
-
ls12styler revised this gist
Dec 27, 2017 . 1 changed file with 1 addition and 18 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -27,21 +27,4 @@ RUN \ sbt sbtVersion # Define working directory WORKDIR /root -
ianjuma created this gist
Sep 8, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ # # 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 EXPOSE 1090 ADD medusa.jar /root/medusa.jar CMD ["java", "-Dcom.sun.management.jmxremote", \ "-Dcom.sun.management.jmxremote.port=1090", \ "-Dcom.sun.management.jmxremote.rmi.port=1090", \ "-Djava.rmi.server.hostname=172.17.0.1", \ "-Dcom.sun.management.jmxremote.local.only=false", \ "-Dcom.sun.management.jmxremote.authenticate=false", \ "-Dcom.sun.management.jmxremote.ssl=false", \ "-XX:+UseConcMarkSweepGC", \ "-Xms128m", \ "-Xmx340m", \ "-jar", \ "/root/medusa.jar"]