-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
29 lines (23 loc) · 1.02 KB
/
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
FROM ubuntu:latest
MAINTAINER James Marlowe [email protected]
# update machine
RUN apt-get -qq update
RUN apt-get -qqy upgrade
# install system reqs
RUN apt-get -qqy install nginx libpq-dev make wget libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl unzip
# install openresty
RUN wget http://openresty.org/download/ngx_openresty-1.5.12.1.tar.gz \
&& tar xzf ngx_openresty-1.5.12.1.tar.gz \
&& cd ngx_openresty-1.5.12.1/ \
&& ./configure --with-http_stub_status_module --with-http_postgres_module \
&& make \
&& make install
# install luarocks
RUN wget http://luarocks.org/releases/luarocks-2.0.13.tar.gz \
&& tar xzf luarocks-2.0.13.tar.gz \
&& cd luarocks-2.0.13/ \
&& ./configure --prefix=/usr/local/openresty/luajit --with-lua=/usr/local/openresty/luajit/ --lua-suffix=jit-2.1.0-alpha --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
&& make \
&& make install
# install the needed rocks
RUN /usr/local/openresty/luajit/bin/luarocks install luacrypto