-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (28 loc) · 917 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM centos:centos7
LABEL maintainer "deflinhec <[email protected]>"
ARG LUA
ENV LUA_VERSION=${LUA:-5.3.6} \
LUAROCKS_VERSION=2.4.2
RUN yum update -y && yum install -y \
make tar unzip gcc \
openssl-devel readline-devel curl libc-devel
RUN curl -L http://www.lua.org/ftp/lua-${LUA_VERSION}.tar.gz | tar xzf - && \
\
cd /lua-$LUA_VERSION && \
make linux test && \
make install && \
\
rm /lua-$LUA_VERSION -rf
RUN curl -OL https://luarocks.org/releases/luarocks-${LUAROCKS_VERSION}.tar.gz && \
tar xvf luarocks-$LUAROCKS_VERSION.tar.gz && \
rm luarocks-$LUAROCKS_VERSION.tar.gz && \
\
cd /luarocks-$LUAROCKS_VERSION && \
./configure \
--with-lua=/usr/local/ \
--with-lua-lib=/usr/local/lib/lua \
--with-lua-include=/usr/local/include && \
make build && \
make install && \
\
rm -rf /luarocks-$LUAROCKS_VERSION