-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (26 loc) · 1.02 KB
/
Copy pathDockerfile
File metadata and controls
30 lines (26 loc) · 1.02 KB
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
FROM openresty/openresty:1.19.9.1-12-bionic
LABEL "author"="ammrage<ammrage@outlook.com>"
RUN echo "\e[1;31m install wget \e[0m" \
&& apt-get install -y wget \
&& rm -rf /var/lib/apt/lists/* \
&& wget "https://luarocks.org/releases/luarocks-3.9.0.tar.gz" \
&& tar zxpf luarocks-3.9.0.tar.gz \
&& cd luarocks-3.9.0 \
&& ./configure --prefix=/usr/local/openresty/luajit \
--with-lua=/usr/local/openresty/luajit/ \
--lua-suffix=jit \
--with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1 \
&& make \
&& echo "\e[1;31m install luarocks \e[0m" \
&& make install \
&& cd .. \
&& rm -rf /luarocks-3.9.0 \
&& rm luarocks-3.9.0.tar.gz \
&& echo "\e[1;31m install lua-resty-auto-ssl \e[0m" \
&& luarocks install lua-resty-auto-ssl \
&& echo "\e[1;31m mkdir resty-auto-ssl \e[0m" \
&& mkdir /etc/resty-auto-ssl \
&& echo "\e[1;31m set access \e[0m" \
&& chown www-data /etc/resty-auto-ssl \
&& echo "\e[1;31m first run done \e[0m"
ENTRYPOINT ["/bin/sh"]