-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (22 loc) · 1.03 KB
/
Dockerfile
File metadata and controls
27 lines (22 loc) · 1.03 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
FROM docker.io/openresty/openresty:latest
RUN DEBIAN_FRONTEND=noninteractive apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
openresty-opm
RUN echo " ... installing system packages dependences ..." \
&& apt-get install -y libmaxminddb-dev \
&& apt-get install -y telnet \
&& apt-get install -y inetutils-ping \
&& apt-get install -y dnsutils \
&& apt-get install -y unzip \
&& apt-get install -y make \
&& apt-get install -y gcc
RUN echo " ... installing opm packages dependences ..." \
&& opm get xiangnanscu/lua-resty-ipmatcher \
&& opm get bungle/lua-resty-template \
&& opm get ip2location/ip2proxy-resty \
&& opm get anjia0532/lua-resty-maxminddb
CMD ["/usr/bin/openresty", "-g", "daemon off;"]
# Use SIGQUIT instead of default SIGTERM to cleanly drain requests
# See https://github.com/openresty/docker-openresty/blob/master/README.md#tips--pitfalls
STOPSIGNAL SIGQUIT