Adding upstream version 0~20240209.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
19c5159728
commit
d4f1a29c25
12 changed files with 2158 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
@ -0,0 +1,25 @@
|
|||
FROM alpine
|
||||
|
||||
# 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
|
||||
|
||||
WORKDIR inotify-info
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN CC="/zig/zig cc -target $(uname -m)-linux-musl" \
|
||||
CXX="/zig/zig c++ -target $(uname -m)-linux-musl" \
|
||||
make
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /inotify-info/_release/inotify-info /inotify-info
|
||||
|
||||
ENTRYPOINT ["/inotify-info"]
|
Loading…
Add table
Add a link
Reference in a new issue