Add fswrap

This commit is contained in:
Xavier Del Campo Romero 2023-12-21 22:56:38 +01:00
parent e1c76293c3
commit f406e681b9
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 19 additions and 0 deletions

19
fswrap/master/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM alpine
ARG PREFIX=/opt/spm/fswrap-master
RUN apk update && apk add \
git \
cmake \
make \
gcc \
musl-dev
RUN git clone --depth 1 https://gitea.privatedns.org/xavi/fswrap
WORKDIR /fswrap
RUN LDFLAGS="-static -Wl,--gc-sections" \
CFLAGS="-ffunction-sections -fdata-sections" \
cmake -B build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$PREFIX
RUN cmake --build build/ --parallel $(nproc --all) -v
RUN cmake --install build/
WORKDIR $PREFIX/bin
RUN strip fswrap