summaryrefslogtreecommitdiff
path: root/luafilesystem/1.8.0/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 /luafilesystem/1.8.0/Dockerfile
parent505c7012cb160690afdcf5e50a98970ad346cb1e (diff)
downloadspm-packages-prosody.tar.gz
WIP prosodyprosody
Diffstat (limited to 'luafilesystem/1.8.0/Dockerfile')
-rw-r--r--luafilesystem/1.8.0/Dockerfile21
1 files changed, 21 insertions, 0 deletions
diff --git a/luafilesystem/1.8.0/Dockerfile b/luafilesystem/1.8.0/Dockerfile
new file mode 100644
index 0000000..bfbc115
--- /dev/null
+++ b/luafilesystem/1.8.0/Dockerfile
@@ -0,0 +1,21 @@
+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/
+RUN wget https://github.com/lunarmodules/luafilesystem/archive/refs/tags/v1_8_0.tar.gz
+RUN tar -xf v1_8_0.tar.gz
+WORKDIR /luafilesystem-1_8_0
+RUN mkdir patches
+COPY 0001-Makefile-Replace-.so-with-.a.patch patches/
+RUN git apply patches/0001-Makefile-Replace-.so-with-.a.patch
+ARG PREFIX=/opt/spm/luafilesystem-1.8.0
+RUN make \
+ CFLAGS="-Os -ffunction-sections -fdata-sections -pedantic \
+ -I/usr/local/include" \
+ LUA_VERSION=5.4 \
+ LIB_OPTION=
+RUN make install LUA_LIBDIR=$PREFIX/lib/