Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/42lm/zig-dockerfile
Zig ⚡️- Dockerfile examples 🙈
https://github.com/42lm/zig-dockerfile
container-actions dockerfile dockerfile-examples github-actions zig ziglang
Last synced: 5 days ago
JSON representation
Zig ⚡️- Dockerfile examples 🙈
- Host: GitHub
- URL: https://github.com/42lm/zig-dockerfile
- Owner: 42LM
- License: mit
- Created: 2025-01-20T23:12:47.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2025-01-20T23:19:12.000Z (7 days ago)
- Last Synced: 2025-01-21T00:24:11.740Z (6 days ago)
- Topics: container-actions, dockerfile, dockerfile-examples, github-actions, zig, ziglang
- Language: Dockerfile
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# zig-dockerfile
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](https://docs.github.com/en/actions/sharing-automations/creating-actions/creating-a-docker-container-action).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](https://github.com/42LM/zig-dockerfile) branch lets
> you build a regular version on `linux x86_64`.
>
> For more options check out different branches:
>
> Build a regular version with setting the `OS` and `ARCH`?
> - Check out the [default_os_arch](https://github.com/42LM/zig-dockerfile/tree/default_os_arch) branch.
>
> Build master/dev on `linux x85_64`?
> - Check out the [dev](https://github.com/42LM/zig-dockerfile/tree/dev) branch.
>
> Build master/dev version with setting the `OS` and `ARCH`?
> - Check out the [dev_os_arch](https://github.com/42LM/zig-dockerfile/tree/dev_os_arch) branch.## Usage
Build image
```sh
docker build -t zig0.13.0 . --build-arg ZIGVER=0.13.0
```Run image
```sh
docker run -it zig0.13.0 sh
```
```sh
docker run --name zigdocker zig0.13.0
```## Notes
This docker image fills a tiny niche and only exists for testing purposes and github actions.> [!CAUTION]
> > [**Zig makes Docker irrelevant.**](https://github.com/ziglang/docker-zig) You probably do not need a Docker image to
build your Zig application, ...
> >
> > Andrew Kelley