!!! This is no longer supported, you should use https://hub.docker.com/r/nimlang/nim/ instead :)
Docker container to run and build Nim code.
This image is based on
alpine Linux and has a total size of 162.6 MB. Be advised that the final executable will be linked with
musl libc and for that reason, the output will be a static binary for compatibility.
docker pull guitmz/nim-builder
- To run your program:
docker run -t --rm -v $(pwd -P)/:/tmp/ nim-builder run /tmp/file.nim
- To build your program:
docker run -t --rm -v $(pwd -P)/:/tmp/ nim-builder build /tmp/file.nim
- Note that the executable will be placed on the folder you monted to the container (ie:
Source at: https://github.com/guitmz/nim-builder