From 5f456584a8f7c9375a714923c68830589dcb6b43 Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Thu, 29 Sep 2022 11:19:20 +0200 Subject: [PATCH] use lua 5.3.6 for static build --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6532d0d..ce53dee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ FROM lionkor/alpine-static-cpp:latest -RUN apk update && apk --no-cache add python3 git lua zlib-static openssl curl rapidjson curl-dev wget -RUN apk --no-cache add openssl-libs-static curl-static +ARG LUA_V=5.3.6 -RUN wget "https://www.lua.org/ftp/lua-5.4.4.tar.gz"; tar xzvf lua-5.4.4.tar.gz; mv lua-5.4.4 /lua; rm lua-5.4.4.tar.gz +RUN apk update && apk --no-cache add python3 git lua zlib-static openssl curl rapidjson curl-dev wget readline-static +RUN apk --no-cache add openssl-libs-static curl-static readline-dev -RUN cd /lua; make all -j; cd .. +RUN wget "https://www.lua.org/ftp/lua-${LUA_V}.tar.gz"; tar xzvf lua-${LUA_V}.tar.gz; mv "lua-${LUA_V}" /lua; rm lua-${LUA_V}.tar.gz + +RUN cd /lua; make all -j linux; cd ..