Last active
August 29, 2015 14:08
-
-
Save mboeh/d23ba889dfd48d07efff to your computer and use it in GitHub Desktop.
mlton docker environment
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 characters
FROM ubuntu:latest | |
RUN apt-get update -y | |
RUN apt-get install -y build-essential libgmp10-dev curl | |
RUN curl -s -L http://downloads.sourceforge.net/project/mlton/mlton/20130715/mlton-20130715-1.amd64-linux.tgz | zcat - | tar x | |
WORKDIR /home | |
VOLUME /home |
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 characters
#!/bin/sh | |
exec docker run -v `pwd`:/home mlton mlton $@ |
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 characters
#!/bin/sh | |
exec docker run -v `pwd`:/home mlton /home/$@ |
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 characters
#!/bin/sh | |
module=`basename $1 .sml` | |
./mlton $module.sml && ./mlton-exec $module |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: