add failed attempt at static build

This commit is contained in:
Emil Lerch 2023-07-29 20:10:49 -07:00
parent 5feee8c0c3
commit e18dcad399
Signed by: lobo
GPG Key ID: A7B62D657EF764F8

17
docker-alpine/Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM alpine
RUN true \
&& apk add --no-cache \
fontconfig-static \
fontconfig \
fontconfig-dev \
expat-static \
ca-certificates \
curl \
xz \
&& curl https://mirror.bazel.build/ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3886+0c1bfe271.tar.xz | tar -C /usr/local/ -xJ \
&& apk del curl xz \
&& ln -s /usr/local/zig*/zig /usr/local/bin \
&& true
ENTRYPOINT ["/usr/local/bin/zig"]