diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-09 13:24:19 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-10-09 13:24:19 +0200 |
| commit | 165bd3a1e699b6416730bda629a8455501b9a990 (patch) | |
| tree | 315be6e1e4c01b1b42efae8a03fac36218d2836e | |
| parent | b6177156c90dc76a421693312ee483996283a2ae (diff) | |
Add libsodium-1.0.20
| -rw-r--r-- | Sodium/1.0.20/Dockerfile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Sodium/1.0.20/Dockerfile b/Sodium/1.0.20/Dockerfile new file mode 100644 index 0000000..9f928a0 --- /dev/null +++ b/Sodium/1.0.20/Dockerfile @@ -0,0 +1,21 @@ +FROM alpine as base +ARG PREFIX=/usr/local +ARG DESTDIR=/opt/spm/libsodium-1.0.20 +RUN apk update && apk add \ + make \ + gcc \ + pkgconf \ + musl-dev \ + wget +RUN wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.20.tar.gz +RUN tar -xf libsodium-1.0.20.tar.gz +WORKDIR /build-libsodium +RUN CFLAGS="-ffunction-sections -fdata-sections -Os" \ + ../libsodium-1.0.20/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.20/usr/local/ /opt/spm/libsodium-1.0.20 |
