├── README.md ├── Dockerfile └── LICENSE /README.md: -------------------------------------------------------------------------------- 1 | # docker-zig 2 | 3 | This docker image is solely for the purpose of creating the image that runs for 4 | [Zig's Drone CI script](https://github.com/ziglang/zig/tree/master/ci/drone). 5 | 6 | **Zig makes Docker irrelevant.** You probably do not need a Docker image to 7 | build your Zig application, and you definitely do not need this one. 8 | 9 | ## Usage 10 | 11 | First, decide whether to bump the base alpine image version. Next: 12 | 13 | ``` 14 | docker build -t ziglang/static-base:llvm15-$(uname -m)-1 . --build-arg ZIGVER=0.10.0-dev.4560+828735ac0 15 | docker push ziglang/static-base:llvm15-$(uname -m)-1 16 | ``` 17 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM alpine:3.13 as builder 2 | 3 | RUN apk update && \ 4 | apk add \ 5 | curl \ 6 | xz 7 | 8 | ARG ZIGVER 9 | RUN mkdir -p /deps 10 | WORKDIR /deps 11 | RUN curl https://ziglang.org/deps/zig+llvm+lld+clang-$(uname -m)-linux-musl-$ZIGVER.tar.xz -O && \ 12 | tar xf zig+llvm+lld+clang-$(uname -m)-linux-musl-$ZIGVER.tar.xz && \ 13 | mv zig+llvm+lld+clang-$(uname -m)-linux-musl-$ZIGVER/ local/ 14 | 15 | FROM alpine:3.13 16 | RUN apk --no-cache add \ 17 | libc-dev \ 18 | xz \ 19 | samurai \ 20 | git \ 21 | cmake \ 22 | py3-pip \ 23 | perl-utils \ 24 | jq \ 25 | curl && \ 26 | pip3 install s3cmd 27 | 28 | COPY --from=builder /deps/local/ /deps/local/ 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (Expat) 2 | 3 | Copyright (c) 2017 Andrew Kelley 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | --------------------------------------------------------------------------------