summaryrefslogtreecommitdiff
path: root/slcl/0.1.0/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'slcl/0.1.0/Dockerfile')
-rw-r--r--slcl/0.1.0/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/slcl/0.1.0/Dockerfile b/slcl/0.1.0/Dockerfile
new file mode 100644
index 0000000..e5ffc5f
--- /dev/null
+++ b/slcl/0.1.0/Dockerfile
@@ -0,0 +1,22 @@
+FROM alpine
+RUN apk update && apk add \
+ git \
+ make \
+ gcc \
+ pkgconf \
+ musl-dev
+COPY --from=libcjson:1.7.16 /opt/spm/cjson-1.7.16/ /usr/local/
+COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
+ARG PREFIX=/opt/spm/slcl-0.1.0
+RUN git clone --depth 1 -b v0.1.0 --recursive \
+ https://gitea.privatedns.org/xavi/slcl
+WORKDIR /slcl
+RUN mkdir patches
+COPY 0001-configure-Add-static-to-default_LDFLAGS.patch patches/
+RUN git apply patches/0001-configure-Add-static-to-default_LDFLAGS.patch
+RUN ./configure --prefix=$PREFIX
+RUN make LDFLAGS="-lcjson -lssl -lm -lcrypto -Llibweb/dynstr -ldynstr \
+ -Llibweb -lweb -static" -n
+RUN make install
+WORKDIR $PREFIX/bin
+RUN strip slcl