summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 13:25:56 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 13:25:56 +0200
commit4df6dedf93fe2d3841a13fd8edf29bbf87e6c868 (patch)
tree146471cd97d748ba2c55b6646f423512a885fff8
parent366e5179dec9010ba0f6b00ce4fe5b6c0d4c495f (diff)
Add slcl 0.4.0
-rw-r--r--slcl/0.4.0/Dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/slcl/0.4.0/Dockerfile b/slcl/0.4.0/Dockerfile
new file mode 100644
index 0000000..673e7b4
--- /dev/null
+++ b/slcl/0.4.0/Dockerfile
@@ -0,0 +1,24 @@
+FROM alpine as base
+RUN apk update && apk add \
+ git \
+ cmake \
+ make \
+ gcc \
+ pkgconf \
+ musl-dev
+COPY --from=zlib:1.3.1 /opt/spm/zlib-1.3.1/ /usr/local/
+COPY --from=libcjson:1.7.18 /opt/spm/cjson-1.7.18/ /usr/local/
+COPY --from=libsodium:1.0.20 /opt/spm/libsodium-1.0.20/ /usr/local/
+ARG PREFIX=/opt/spm/slcl-0.4.0
+RUN git clone --depth 1 -b v0.4.0 --recursive \
+ https://gitea.privatedns.org/xavi/slcl
+WORKDIR /slcl
+RUN LDFLAGS='-static -Wl,--gc-sections' cmake -B build \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=$PREFIX
+RUN cmake --build build -j$(nproc)
+RUN cmake --install build
+WORKDIR $PREFIX/bin
+RUN strip slcl
+FROM scratch
+COPY --from=base /opt/spm/slcl-0.4.0/bin/slcl /opt/spm/slcl-0.4.0/bin/slcl