42LM/zig-dockerfile
Zig ⚡️- Dockerfile examples (mainly for use in a Docker container github action 🐳)
This repo provides docker image examples that contain zig. These docker images can be used for the purpose of creating a Docker container github action or testing.
If you just want to use zig for building a github action and want to waive javascript completely this image might be for YOU 🫵!
NOTE The
Dockerfile
in the main/default branch lets you build a regular version onlinux x86_64
.For more options check out different branches:
Build a regular version with setting the
OS
andARCH
?
- Check out the default_os_arch branch.
Build master/dev on
linux x85_64
?
- Check out the dev branch.
Build master/dev version with setting the
OS
andARCH
?
- Check out the dev_os_arch branch.
Build image
docker build -t zig0.13.0 . --build-arg ZIGVER=0.13.0
Run image
docker run -it zig0.13.0 sh
docker run --name zigdocker zig0.13.0
This docker image fills a tiny niche and only exists for testing purposes and github actions.
CAUTION
Zig makes Docker irrelevant. You probably do not need a Docker image to build your Zig application, ...
Andrew Kelley