mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-20 08:18:40 +00:00
14 lines
486 B
Plaintext
14 lines
486 B
Plaintext
ARG BUILD_TIMESTAMP=0
|
|
FROM --platform=linux/i386 alpine:latest as build
|
|
COPY install-build-pkgs /tmp/
|
|
RUN /tmp/install-build-pkgs
|
|
ARG BRANCH=master
|
|
RUN git clone --single-branch --depth=1 https://github.com/trapexit/mergerfs /tmp/mergerfs --branch="${BRANCH}"
|
|
WORKDIR /tmp/mergerfs
|
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
|
RUN mkdir /build
|
|
RUN tar cvfz /build/mergerfs-static-linux_i386.tar.gz --directory=/tmp usr sbin
|
|
|
|
FROM scratch
|
|
COPY --from=build /build/ /
|