add stable 1.14.2
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -2,7 +2,7 @@
|
|||||||
FROM alpine:3.8
|
FROM alpine:3.8
|
||||||
|
|
||||||
# ------ original nginx docker alpine source compile! ------ #
|
# ------ original nginx docker alpine source compile! ------ #
|
||||||
ENV NGINX_VERSION 1.15.5
|
ENV NGINX_VERSION 1.14.2
|
||||||
|
|
||||||
# additional nginx modules
|
# additional nginx modules
|
||||||
ENV ADD_MODULE_HEADERS_MORE_NGINX_VERSION 0.33
|
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-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp \
|
||||||
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
|
--http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp \
|
||||||
--http-scgi-temp-path=/var/cache/nginx/scgi_temp \
|
--http-scgi-temp-path=/var/cache/nginx/scgi_temp \
|
||||||
|
--user=nginx \
|
||||||
|
--group=nginx \
|
||||||
--with-http_ssl_module \
|
--with-http_ssl_module \
|
||||||
--with-http_realip_module \
|
--with-http_realip_module \
|
||||||
--with-http_addition_module \
|
--with-http_addition_module \
|
||||||
@@ -58,6 +60,8 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
|
|||||||
--with-http_v2_module \
|
--with-http_v2_module \
|
||||||
--add-module=/usr/lib/nginx/modules/headers-more-nginx-module-$ADD_MODULE_HEADERS_MORE_NGINX_VERSION \
|
--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 \
|
&& apk add --no-cache --virtual .build-deps \
|
||||||
gcc \
|
gcc \
|
||||||
libc-dev \
|
libc-dev \
|
||||||
@@ -67,7 +71,7 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
|
|||||||
zlib-dev \
|
zlib-dev \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
curl \
|
curl \
|
||||||
gnupg \
|
gnupg1 \
|
||||||
libxslt-dev \
|
libxslt-dev \
|
||||||
gd-dev \
|
gd-dev \
|
||||||
geoip-dev \
|
geoip-dev \
|
||||||
@@ -116,6 +120,10 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
|
|||||||
&& strip /usr/lib/nginx/modules/*.so \
|
&& strip /usr/lib/nginx/modules/*.so \
|
||||||
&& rm -rf /usr/src/nginx-$NGINX_VERSION \
|
&& 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 \
|
&& apk add --no-cache --virtual .gettext gettext \
|
||||||
&& mv /usr/bin/envsubst /tmp/ \
|
&& mv /usr/bin/envsubst /tmp/ \
|
||||||
\
|
\
|
||||||
@@ -130,8 +138,11 @@ RUN GPG_KEYS=B0F4253373F8F6F510D42178520A9993A1C052F8 \
|
|||||||
&& apk del .gettext \
|
&& apk del .gettext \
|
||||||
&& mv /tmp/envsubst /usr/local/bin/ \
|
&& mv /tmp/envsubst /usr/local/bin/ \
|
||||||
\
|
\
|
||||||
|
# Bring in tzdata so users could set the timezones through the environment
|
||||||
|
# variables
|
||||||
&& apk add --no-cache tzdata \
|
&& 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/stdout /var/log/nginx/access.log \
|
||||||
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
&& ln -sf /dev/stderr /var/log/nginx/error.log
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user