diff options
Diffstat (limited to 'fswrap')
| -rw-r--r-- | fswrap/master/Dockerfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fswrap/master/Dockerfile b/fswrap/master/Dockerfile new file mode 100644 index 0000000..b28e5e1 --- /dev/null +++ b/fswrap/master/Dockerfile @@ -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 |
