diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-12-21 22:56:38 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-12-21 22:56:38 +0100 |
| commit | f406e681b950713b00082233ba029a3dfbd54c49 (patch) | |
| tree | cec755d3f5f68d5baafd17cc68010fbe40639270 | |
| parent | e1c76293c3289a919f24edc1bd6956dbb8bc8ee0 (diff) | |
Add 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 |
