it creates an image with Alpine Linux + Nim pre-installed (basically, the most lightweight setup)
installs the dependencies (packages + Nim libraries)
clones the min repo
builds it
points to the resulting binary
You can build the image locally with:
docker build -t mindocker .
And run it with:
docker run -it mindocker
Of course you could also mirror the repo at Docker Hub so that anyone could easily launch the min REPL without needing to know anything about min or its dependencies, like:
docker run -it minlang/min
or even run a script directly:
docker run -it -v $(pwd):/home minlang/min <PATH_TO_LOCAL_SCRIPT.min>
Basically, the code is very straightforward:
You can build the image locally with:
And run it with:
Of course you could also mirror the repo at Docker Hub so that anyone could easily launch the min REPL without needing to know anything about min or its dependencies, like:
or even run a script directly: