# snac2 2.95 from its tag: the project publishes no image
FROM docker.io/library/alpine:3.22 AS builder
RUN apk -U --no-progress --no-cache add git curl-dev build-base
RUN git clone --depth 1 --branch 2.95 https://codeberg.org/grunfink/snac2 /build && cd /build && make \
	&& make PREFIX=/out/usr/local PREFIX_MAN=/out/usr/local/share/man install

FROM docker.io/library/alpine:3.22
RUN apk -U --no-progress --no-cache add libcurl tzdata
COPY --from=builder /out /
EXPOSE 8001
