-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (24 loc) · 913 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
# Dockerfile - Ubuntu Bionic
# https://github.com/openresty/docker-openresty
ARG RESTY_IMAGE_BASE="openresty/openresty"
ARG RESTY_IMAGE_TAG="bionic"
FROM ${RESTY_IMAGE_BASE}:${RESTY_IMAGE_TAG}
LABEL maintainer="Tomas Zvala <[email protected]>"
RUN export DEBIAN_FRONTEND=noninteractive \
&& cd /usr/local/src \
&& apt-get update \
&& apt-get -y --no-install-recommends install git python
RUN cd /usr/local/src \
&& git clone https://github.com/p0pr0ck5/lua-resty-waf.git \
&& cd lua-resty-waf \
&& git checkout -b development \
&& git submodule update --init
COPY resty.patch /usr/local/src
RUN cd /usr/local/src/lua-resty-waf \
&& patch -p1 < /usr/local/src/resty.patch \
&& make && make install
RUN rm /usr/local/openresty/nginx/logs/*
VOLUME /usr/local/openresty/nginx/conf
VOLUME /usr/local/openresty/nginx/logs
COPY start.sh /usr/local/openresty/start.sh
CMD ["/usr/local/openresty/start.sh"]