Cross compiling for Nim
5.8K
Dockerfile for Nim cross-compiler
echo 'echo "Hello World"' > hello.nim
docker run --rm -v `pwd`:/usr/local/src \
chrishellerappsian/docker-nim-cross:latest \
nim c --os:windows --cpu:amd64 --out:hello64.exe hello.nim
docker run --rm -v `pwd`:/usr/local/src \
chrishellerappsian/docker-nim-cross:latest \
nim c --os:macosx --cpu:amd64 --out:hello32.osx.bin hello.nim
Look at example directory.
default command is bash.
Content type
Image
Digest
Size
916.6 MB
Last updated
almost 6 years ago
docker pull chrishellerappsian/docker-nim-cross