17 lines
473 B
Docker
17 lines
473 B
Docker
FROM vecps:base-v0.1.2
|
|
|
|
LABEL maintainer="Tosone <i@tosone.cn>"
|
|
|
|
ARG LUA_VERSION=5.4.4
|
|
|
|
RUN wget https://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz && \
|
|
tar xf lua-${LUA_VERSION}.tar.gz && \
|
|
rm lua-${LUA_VERSION}.tar.gz
|
|
|
|
RUN cd lua-${LUA_VERSION} && \
|
|
cd src && \
|
|
make all SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl" MYLDFLAGS="-static" && \
|
|
mkdir -p /app/lua/bin && \
|
|
cp lua luac /app/lua/bin && \
|
|
strip /app/lua/bin/lua /app/lua/bin/luac
|