优化nginx的debian版本

This commit is contained in:
KennyLee 2017-05-15 16:56:13 +08:00
parent 7484d2cc8f
commit 361db589cf

View File

@ -6,6 +6,7 @@ FROM registry.cn-hangzhou.aliyuncs.com/kennylee/debian:jessie
MAINTAINER kennylee26 <kennylee26@gmail.com>
ENV NGINX_VERSION 1.13.0-1~jessie
ENV NJS_VERSION 1.13.0.0.1.10-1~stretch
RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62 \
&& echo "deb http://nginx.org/packages/mainline/debian/ jessie nginx" >> /etc/apt/sources.list \
@ -13,12 +14,11 @@ RUN apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 573BFD6B3D8FBC64107
&& apt-get install --no-install-recommends --no-install-suggests -y \
ca-certificates \
nginx=${NGINX_VERSION} \
nginx-module-xslt \
nginx-module-geoip \
nginx-module-image-filter \
nginx-module-perl \
nginx-module-njs \
gettext-base \
nginx-module-xslt=${NGINX_VERSION} \
nginx-module-geoip=${NGINX_VERSION} \
nginx-module-image-filter=${NGINX_VERSION} \
nginx-module-njs=${NJS_VERSION} \
gettext-base \
&& rm -rf /var/lib/apt/lists/*
# forward request and error logs to docker log collector