add stable 1.14.2
This commit is contained in:
		
							
								
								
									
										15
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
			
		||||
FROM alpine:3.8
 | 
			
		||||
 | 
			
		||||
# ------ original nginx docker alpine source compile! ------ #
 | 
			
		||||
ENV NGINX_VERSION 1.15.5
 | 
			
		||||
ENV NGINX_VERSION 1.14.2
 | 
			
		||||
 | 
			
		||||
#	additional nginx modules
 | 
			
		||||
ENV ADD_MODULE_HEADERS_MORE_NGINX_VERSION 0.33
 | 
			
		||||
@@ -28,6 +28,8 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
 | 
			
		||||
		--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 \
 | 
			
		||||
@@ -58,6 +60,8 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
 | 
			
		||||
		--with-http_v2_module \
 | 
			
		||||
		--add-module=/usr/lib/nginx/modules/headers-more-nginx-module-$ADD_MODULE_HEADERS_MORE_NGINX_VERSION \
 | 
			
		||||
	" \
 | 
			
		||||
	&& addgroup -S nginx \
 | 
			
		||||
	&& adduser -D -S -h /var/cache/nginx -s /sbin/nologin -G nginx nginx \
 | 
			
		||||
	&& apk add --no-cache --virtual .build-deps \
 | 
			
		||||
		gcc \
 | 
			
		||||
		libc-dev \
 | 
			
		||||
@@ -67,7 +71,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
 | 
			
		||||
		zlib-dev \
 | 
			
		||||
		linux-headers \
 | 
			
		||||
		curl \
 | 
			
		||||
		gnupg \
 | 
			
		||||
		gnupg1 \
 | 
			
		||||
		libxslt-dev \
 | 
			
		||||
		gd-dev \
 | 
			
		||||
		geoip-dev \
 | 
			
		||||
@@ -116,6 +120,10 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
 | 
			
		||||
	&& strip /usr/lib/nginx/modules/*.so \
 | 
			
		||||
	&& rm -rf /usr/src/nginx-$NGINX_VERSION \
 | 
			
		||||
	\
 | 
			
		||||
	# Bring in gettext so we can get `envsubst`, then throw
 | 
			
		||||
	# the rest away. To do this, we need to install `gettext`
 | 
			
		||||
	# then move `envsubst` out of the way so `gettext` can
 | 
			
		||||
	# be deleted completely, then move `envsubst` back.
 | 
			
		||||
	&& apk add --no-cache --virtual .gettext gettext \
 | 
			
		||||
	&& mv /usr/bin/envsubst /tmp/ \
 | 
			
		||||
	\
 | 
			
		||||
@@ -130,8 +138,11 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
 | 
			
		||||
	&& apk del .gettext \
 | 
			
		||||
	&& mv /tmp/envsubst /usr/local/bin/ \
 | 
			
		||||
	\
 | 
			
		||||
	# Bring in tzdata so users could set the timezones through the environment
 | 
			
		||||
	# variables
 | 
			
		||||
	&& apk add --no-cache tzdata \
 | 
			
		||||
	\
 | 
			
		||||
	# forward request and error logs to docker log collector
 | 
			
		||||
	&& ln -sf /dev/stdout /var/log/nginx/access.log \
 | 
			
		||||
	&& ln -sf /dev/stderr /var/log/nginx/error.log
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user