summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-08 22:36:13 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-08 23:03:24 +0100
commit7613f8a96aec77d02827c82374795e635bd74f54 (patch)
tree3cab4f6db8db60e3cd51ea4cb61e1c2f26a4d4d3
parent70e61a068d27862df5917c7e71cd465641f95893 (diff)
Add libsodium-1.0.21
-rw-r--r--Sodium/1.0.21/Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Sodium/1.0.21/Dockerfile b/Sodium/1.0.21/Dockerfile
new file mode 100644
index 0000000..c07da67
--- /dev/null
+++ b/Sodium/1.0.21/Dockerfile
@@ -0,0 +1,21 @@
+FROM alpine as base
+ARG PREFIX=/usr/local
+ARG DESTDIR=/opt/spm/libsodium-1.0.21
+RUN apk update && apk add \
+ make \
+ gcc \
+ pkgconf \
+ musl-dev \
+ wget
+RUN wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.21.tar.gz
+RUN tar -xf libsodium-1.0.21.tar.gz
+WORKDIR /build-libsodium
+RUN CFLAGS="-ffunction-sections -fdata-sections -Os" \
+ ../libsodium-1.0.21/configure \
+ --prefix=$PREFIX \
+ --enable-static \
+ --enable-shared=no
+RUN make -j$(nproc)
+RUN make install DESTDIR=$DESTDIR
+FROM scratch
+COPY --from=base /opt/spm/libsodium-1.0.21/usr/local/ /opt/spm/libsodium-1.0.21