aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2017-03-21 14:08:25 +0800
committerGitHub <[email protected]>2017-03-21 14:08:25 +0800
commit23f277a0c5f96bacd6fbedef7042644476d1dbec (patch)
treef6b556075db077b23c7fff2e73c24b25d5a029b8 /Dockerfile
parent94030914cb4726ac9ae54fe24338b6aa7a9a8897 (diff)
downloadnginx-proxy-google-23f277a0c5f96bacd6fbedef7042644476d1dbec.tar.gz
update version
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile61
1 files changed, 51 insertions, 10 deletions
diff --git a/Dockerfile b/Dockerfile
index 5f09195..93cd2a0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,24 +11,64 @@ RUN \
11 11
12# Get Source Code 12# Get Source Code
13RUN \ 13RUN \
14 wget "http://nginx.org/download/nginx-1.11.3.tar.gz" && \ 14 wget "http://nginx.org/download/nginx-1.11.9.tar.gz" && \
15 wget "http://linux.stanford.edu/pub/exim/pcre/pcre-8.39.tar.gz" && \ 15 wget "http://linux.stanford.edu/pub/exim/pcre/pcre-8.40.tar.gz" && \
16 wget "https://www.openssl.org/source/openssl-1.0.2h.tar.gz" && \ 16 wget "https://www.openssl.org/source/openssl-1.1.0e.tar.gz" && \
17 wget "http://zlib.net/zlib-1.2.8.tar.gz" && \ 17 wget "http://zlib.net/zlib-1.2.11.tar.gz" && \
18 git clone https://github.com/cuber/ngx_http_google_filter_module && \ 18 git clone https://github.com/cuber/ngx_http_google_filter_module && \
19 git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module && \ 19 git clone https://github.com/yaoweibin/ngx_http_substitutions_filter_module && \
20 tar xzf nginx-1.11.3.tar.gz && \ 20 tar xzf nginx-1.11.9.tar.gz && \
21 tar xzf pcre-8.39.tar.gz && \ 21 tar xzf pcre-8.40.tar.gz && \
22 tar xzf openssl-1.0.2h.tar.gz && \ 22 tar xzf openssl-1.1.0e.tar.gz && \
23 tar xzf zlib-1.2.8.tar.gz 23 tar xzf zlib-1.2.11.tar.gz
24 24
25ADD ./nginx.service /etc/init.d/nginx 25ADD ./nginx.service /etc/init.d/nginx
26ADD ./nginx.conf /etc/nginx/nginx.conf 26ADD ./nginx.conf /etc/nginx/nginx.conf
27 27
28# Install Nginx 28# Install Nginx
29RUN \ 29RUN \
30 cd nginx-1.11.3 && \ 30 cd nginx-1.11.9 && \
31 ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx --group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-threads --with-stream --with-stream_ssl_module --with-http_slice_module --with-mail --with-mail_ssl_module --with-file-aio --with-http_v2_module --with-ipv6 --with-pcre=../pcre-8.39 --with-openssl=../openssl-1.0.2h --with-zlib=../zlib-1.2.8 --add-module=../ngx_http_google_filter_module --add-module=../ngx_http_substitutions_filter_module && \ 31 ./configure --prefix=/etc/nginx && \
32 --sbin-path=/usr/sbin/nginx && \
33 --conf-path=/etc/nginx/nginx.conf && \
34 --error-log-path=/var/log/nginx/error.log && \
35 --http-log-path=/var/log/nginx/access.log && \
36 --pid-path=/var/run/nginx.pid && \
37 --lock-path=/var/run/nginx.lock && \
38 --http-client-body-temp-path=/var/cache/nginx/client_temp && \
39 --http-proxy-temp-path=/var/cache/nginx/proxy_temp && \
40 --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp && \
41 --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp && \
42 --http-scgi-temp-path=/var/cache/nginx/scgi_temp && \
43 --user=nginx && \
44 --group=nginx && \
45 --with-http_ssl_module && \
46 --with-http_realip_module && \
47 --with-http_addition_module && \
48 --with-http_sub_module && \
49 --with-http_dav_module && \
50 --with-http_flv_module && \
51 --with-http_mp4_module && \
52 --with-http_gunzip_module && \
53 --with-http_gzip_static_module && \
54 --with-http_random_index_module && \
55 --with-http_secure_link_module && \
56 --with-http_stub_status_module && \
57 --with-http_auth_request_module && \
58 --with-threads && \
59 --with-stream && \
60 --with-stream_ssl_module && \
61 --with-http_slice_module && \
62 --with-mail && \
63 --with-mail_ssl_module && \
64 --with-file-aio && \
65 --with-http_v2_module && \
66 --with-ipv6 && \
67 --with-pcre=../pcre-8.40 && \
68 --with-openssl=../openssl-1.1.0e && \
69 --with-zlib=../zlib-1.2.11 && \
70 --add-module=../ngx_http_google_filter_module && \
71 --add-module=../ngx_http_substitutions_filter_module && \
32 make -j4 && \ 72 make -j4 && \
33 make install && \ 73 make install && \
34 chmod +x /etc/init.d/nginx && \ 74 chmod +x /etc/init.d/nginx && \
@@ -37,6 +77,7 @@ RUN \
37 mkdir -p /var/cache/nginx 77 mkdir -p /var/cache/nginx
38 78
39EXPOSE 80 79EXPOSE 80
80EXPOSE 443
40 81
41# Run Nginx 82# Run Nginx
42CMD service nginx start && tail -F /var/log/nginx/access.log 83CMD service nginx start && tail -F /var/log/nginx/access.log
Powered by cgit v1.2.3 (git 2.41.0)