1
0
Fork 0

Adding upstream version 0.0.2.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-05 15:19:56 +01:00
parent 93330e4b0f
commit 08378522f3
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
9 changed files with 761 additions and 834 deletions

View file

@ -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