diff options
Diffstat (limited to 'luastatic/master/Dockerfile')
| -rw-r--r-- | luastatic/master/Dockerfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/luastatic/master/Dockerfile b/luastatic/master/Dockerfile new file mode 100644 index 0000000..ad04502 --- /dev/null +++ b/luastatic/master/Dockerfile @@ -0,0 +1,16 @@ +FROM alpine +RUN apk update && apk add \ + git \ + make \ + gcc \ + musl-dev +RUN git clone --depth 1 --recursive https://github.com/ers35/luastatic \ + /opt/spm/luastatic-master +WORKDIR /opt/spm/luastatic-master +COPY --from=lua:5.4.6 /opt/spm/lua-5.4.6/ /usr/local/ +RUN make -j$(nproc --all) \ + LUA=lua \ + LIBLUA_A=/usr/local/lib/liblua.a \ + LUA_INCLUDE=/usr/local/include \ + CFLAGS=-static +RUN strip luastatic |
