Sign inSign up

vhyran/zig-alpine

By vhyran

•Updated almost 2 years ago

Docker image with Zig on Alpine Linux for lightweight and efficient Zig project builds.

Image
Languages & frameworks
0

93

vhyran/zig-alpine repository overview

⁠Zig-Alpine Docker Image

This repository provides a lightweight Docker image with Zig preinstalled on Alpine Linux, enabling efficient building and running of Zig applications in a minimal environment.

⁠Features

  • Base OS: Alpine Linux for minimal size and security.
  • Zig Compiler: Preinstalled for easy Zig project development.
  • Essential Tools: Includes build-base and other dependencies for building projects.

⁠Getting Started

⁠Pull the Image
docker pull your-repo/zig-alpine:latest
⁠Build a Zig Project
  1. Place your Zig project in a directory.
  2. Mount the directory into the container and build:
    docker run --rm -v $(pwd):/app -w /app your-repo/zig-alpine zig build -Drelease-fast=true
    
⁠Run the Application

Build a statically linked Zig binary and run it directly or within the container.

⁠Use Cases

  • Development: Quickly test and build Zig projects in a consistent environment.
  • Deployment: Ship Zig binaries built in a minimal container.

Tag summary

Content type

Image

Digest

sha256:8404ed6e7…

Size

122.7 MB

Last updated

almost 2 years ago

docker pull vhyran/zig-alpine:0.13.0-r1