summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lua/5.4.6/Dockerfile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Lua/5.4.6/Dockerfile b/Lua/5.4.6/Dockerfile
new file mode 100644
index 0000000..108af74
--- /dev/null
+++ b/Lua/5.4.6/Dockerfile
@@ -0,0 +1,15 @@
+FROM alpine
+RUN apk update && apk add \
+ git \
+ make \
+ gcc \
+ musl-dev \
+ wget
+RUN wget https://www.lua.org/ftp/lua-5.4.6.tar.gz
+RUN tar -xf lua-5.4.6.tar.gz
+WORKDIR /lua-5.4.6
+ARG PREFIX=/opt/spm/lua-5.4.6
+RUN make -j$(nproc --all) CFLAGS="-std=gnu99 -Os -Wall -Wextra \
+ -DLUA_COMPAT_5_3 -DLUA_USE_LINUX \
+ -ffunction-sections -fdata-sections"
+RUN make install INSTALL_TOP=$PREFIX