summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..adfd1ab
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,15 @@
+FROM alpine:3.16
+
+ARG ZIG_VERSION
+
+RUN apk update && \
+ apk --no-cache add \
+ curl \
+ make \
+ musl-dev \
+ libarchive-tools && \
+ if echo ${ZIG_VERSION} | grep -q "dev"; then PREFIX=builds; else PREFIX="download/${ZIG_VERSION}"; fi && \
+ curl -s \
+ https://ziglang.org/${PREFIX}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz |\
+ bsdtar -x -f - && \
+ mv zig-linux-x86_64-${ZIG_VERSION}/* /usr/local/bin/