-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (28 loc) · 894 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
33
34
35
36
37
FROM alpine:3.5
LABEL maintainer "Charlie McClung <charlie@cmr1.com>"
RUN apk add --no-cache \
gcc \
bash \
curl \
make \
perl \
musl-dev \
pcre-dev \
zlib-dev \
libssl1.0
RUN curl https://www.openssl.org/source/openssl-1.0.2j.tar.gz -o /tmp/openssl-1.0.2j.tar.gz
RUN curl https://openresty.org/download/openresty-1.11.2.2.tar.gz -o /tmp/openresty-1.11.2.2.tar.gz
RUN tar xf /tmp/openssl-1.0.2j.tar.gz -C /usr/local
RUN tar xf /tmp/openresty-1.11.2.2.tar.gz -C /tmp
WORKDIR /tmp/openresty-1.11.2.2
RUN ./configure \
--prefix=/usr/local/openresty \
--with-openssl=/usr/local/openssl-1.0.2j \
--with-debug \
--with-http_v2_module \
--with-http_realip_module \
--with-http_sub_module
RUN make && make install
RUN rm -rf /tmp/open*
# Start nginx in the foreground to play nicely with Docker.
CMD ["/usr/local/openresty/nginx/sbin/nginx", "-g", "daemon off;"]