mirror of https://github.com/trapexit/mergerfs.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
563 B
15 lines
563 B
FROM --platform=linux/i386 alpine:latest as build
|
|
COPY install-build-pkgs /tmp/
|
|
RUN /tmp/install-build-pkgs
|
|
ARG BUILD_TIMESTAMP=0
|
|
ARG GIT_REPO
|
|
ARG BRANCH
|
|
RUN git clone --single-branch --branch="${BRANCH}" ${GIT_REPO} /tmp/mergerfs
|
|
WORKDIR /tmp/mergerfs
|
|
RUN make NDEBUG=1 LTO=1 STATIC=1 DESTDIR=/tmp -j$(nproc) install
|
|
RUN mkdir /build
|
|
RUN /tmp/usr/local/bin/mergerfs --version | head -n1 | cut -c 11- | tee /tmp/version
|
|
RUN tar cvfz /build/mergerfs-$(cat /tmp/version)-static-linux_i386.tar.gz --directory=/tmp usr sbin
|
|
|
|
FROM scratch
|
|
COPY --from=build /build/ /
|