mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 02:48:59 -04:00
* Remove python dependency * Remove ecfd * Improve makefiles * Make preload.so more 32bit compatible
13 lines
460 B
Text
13 lines
460 B
Text
ARG BUILD_TIMESTAMP=0
|
|
FROM --platform=linux/riscv64 alpine:latest as build
|
|
COPY install-build-pkgs /tmp/
|
|
RUN /tmp/install-build-pkgs
|
|
ARG BRANCH=master
|
|
RUN git clone https://github.com/trapexit/mergerfs /tmp/mergerfs -b "${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_riscv64.tar.gz --directory=/tmp usr sbin
|
|
|
|
FROM scratch
|
|
COPY --from=build /build/ /
|