summaryrefslogtreecommitdiff
path: root/LuaSec/1.3.2/Dockerfile
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-20 12:50:34 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-10-24 22:58:59 +0200
commitf001951e3aec75bf750fda476c0ba4ce443029c3 (patch)
tree3f498ed5b6772043675f1abb5eea084c19fe464d /LuaSec/1.3.2/Dockerfile
parent505c7012cb160690afdcf5e50a98970ad346cb1e (diff)
WIP prosodyprosody
Diffstat (limited to 'LuaSec/1.3.2/Dockerfile')
-rw-r--r--LuaSec/1.3.2/Dockerfile25
1 files changed, 25 insertions, 0 deletions
diff --git a/LuaSec/1.3.2/Dockerfile b/LuaSec/1.3.2/Dockerfile
new file mode 100644
index 0000000..c088d71
--- /dev/null
+++ b/LuaSec/1.3.2/Dockerfile
@@ -0,0 +1,25 @@
+FROM alpine
+RUN apk update && apk add \
+ make \
+ gcc \
+ git \
+ musl-dev \
+ wget
+COPY --from=lua:5.4.6 /opt/spm/lua-5.4.6/ /usr/local/
+COPY --from=luasocket:3.1.0 /opt/spm/luasocket-3.1.0/ /usr/local/
+COPY --from=libopenssl:3.1.1-minimal /opt/spm/openssl-3.1.1/ /usr/local/
+RUN wget https://github.com/brunoos/luasec/archive/refs/tags/v1.3.2.tar.gz
+RUN tar -xf v1.3.2.tar.gz
+WORKDIR /luasec-1.3.2
+RUN mkdir patches
+COPY 0001-src-Makefile-Generate-static-library.patch patches/
+RUN git apply patches/0001-src-Makefile-Generate-static-library.patch
+ARG PREFIX=/opt/spm/luasec-1.3.2
+RUN make \
+ linux \
+ CMOD=libluassl.a \
+ LNX_CFLAGS="-I/usr/local/include -DWITH_LUASOCKET \
+ -ffunction-sections -fdata-sections -Os" \
+ LNX_LDFLAGS=
+
+# TODO: install