summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 19:57:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-03 19:57:50 +0000
commitadb353ea5974fb716ce9f47562e340672f015aff (patch)
tree66ba6c62748a973d7dd2a81f65a177d93ee46d75 /Dockerfile
parentAdding upstream version 0.0.1. (diff)
downloadinotify-info-adb353ea5974fb716ce9f47562e340672f015aff.tar.xz
inotify-info-adb353ea5974fb716ce9f47562e340672f015aff.zip
Adding upstream version 0.0.2.upstream/0.0.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 4 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index 8acb222..aa19614 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,22 +1,13 @@
-FROM alpine
+FROM alpine:edge
-# zig is installed from the upstream tarball, because:
-# - as of writing, alpine has zig only in testing (which is cumbersome to use)
-# - apk get zig pulls in libllvm, which is huge.
-#
-# Upstream tarball is statically linked, making it small and convenient to use.
-RUN apk add make \
- && wget https://ziglang.org/download/0.11.0/zig-linux-$(uname -m)-0.11.0.tar.xz \
- && tar -xJf zig-linux-*.tar.xz \
- && rm zig-linux-*.xz \
- && mv zig-linux-* zig
+RUN apk add make zig git
WORKDIR inotify-info
COPY . .
-RUN CC="/zig/zig cc -target $(uname -m)-linux-musl" \
- CXX="/zig/zig c++ -target $(uname -m)-linux-musl" \
+RUN CC="zig cc -target $(uname -m)-linux-musl" \
+ CXX="zig c++ -target $(uname -m)-linux-musl" \
make
FROM scratch