summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 13:25:33 +0200
committerXavier Del Campo Romero <xavi92@disroot.org>2025-10-09 13:25:33 +0200
commit366e5179dec9010ba0f6b00ce4fe5b6c0d4c495f (patch)
tree5d01becde2d528755b89db18ba6cfcc646760ba1
parent6142280fe5d4e26c6f907b08b1b84d74aa5a6492 (diff)
Add zlib-1.3.1
-rw-r--r--zlib/1.3.1/Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/zlib/1.3.1/Dockerfile b/zlib/1.3.1/Dockerfile
new file mode 100644
index 0000000..ee17e53
--- /dev/null
+++ b/zlib/1.3.1/Dockerfile
@@ -0,0 +1,19 @@
+FROM alpine as base
+ARG PREFIX=/usr/local
+ARG DESTDIR=/opt/spm/zlib-1.3.1
+RUN apk update && apk add \
+ make \
+ gcc \
+ musl-dev \
+ wget
+RUN wget https://zlib.net/zlib-1.3.1.tar.gz
+RUN tar -xf zlib-1.3.1.tar.gz
+WORKDIR /build-zlib
+RUN CFLAGS='-ffunction-sections -fdata-sections -Os' \
+ ../zlib-1.3.1/configure \
+ --prefix=$PREFIX \
+ --static
+RUN make -j$(nproc)
+RUN make install DESTDIR=$DESTDIR
+FROM scratch
+COPY --from=base /opt/spm/zlib-1.3.1/usr/local /opt/spm/zlib-1.3.1