nginx 443
This commit is contained in:
parent
aadf5903a5
commit
cbde5d7e57
@ -4,21 +4,29 @@ MAINTAINER Yang <yangyufans@qq.com>
|
|||||||
|
|
||||||
ENV NGINX_VERSION=1.15.0
|
ENV NGINX_VERSION=1.15.0
|
||||||
|
|
||||||
RUN yum install -y wget make gcc pcre-devel gzip zlib zlib-devel
|
RUN yum install -y wget make gcc pcre-devel gzip zlib zlib-devel openssl openssl-devel
|
||||||
|
|
||||||
|
RUN echo "ZONE=Asia/Shanghai" > /etc/sysconfig/clock && \
|
||||||
|
rm -rf /etc/localtime && \
|
||||||
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
|
||||||
|
RUN yum -y install kde-l10n-Chinese telnet reinstall glibc-common && \
|
||||||
|
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
|
||||||
|
|
||||||
|
ENV LC_ALL "zh_CN.UTF-8"
|
||||||
|
|
||||||
|
|
||||||
RUN cd / && wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz \
|
RUN cd / && wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz \
|
||||||
&& tar -zxvf nginx-$NGINX_VERSION.tar.gz \
|
&& tar -zxvf nginx-$NGINX_VERSION.tar.gz \
|
||||||
&& rm -rf nginx-$NGINX_VERSION.tar.gz \
|
&& rm -rf nginx-$NGINX_VERSION.tar.gz \
|
||||||
&& cd nginx-$NGINX_VERSION \
|
&& cd nginx-$NGINX_VERSION \
|
||||||
&& ./configure --prefix=/usr/local/nginx \
|
&& ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install \
|
&& make install
|
||||||
&& cd .. \
|
|
||||||
&& rm -rf nginx-$NGINX_VERSION
|
|
||||||
|
|
||||||
RUN mkdir -p /nginx/conf && mkdir /nginx/logs/ && mkdir /nginx/www
|
RUN mkdir -p /nginx/conf && mkdir /nginx/logs/ && mkdir /nginx/www
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80 443
|
||||||
|
|
||||||
COPY start.sh /
|
COPY start.sh /
|
||||||
|
|
||||||
|
|||||||
@ -4,21 +4,29 @@ MAINTAINER Yang <yangyufans@qq.com>
|
|||||||
|
|
||||||
ENV NGINX_VERSION=1.9.9
|
ENV NGINX_VERSION=1.9.9
|
||||||
|
|
||||||
RUN yum install -y wget make gcc pcre-devel gzip zlib zlib-devel
|
RUN yum install -y wget make gcc pcre-devel gzip zlib zlib-devel openssl openssl-devel
|
||||||
|
|
||||||
|
RUN echo "ZONE=Asia/Shanghai" > /etc/sysconfig/clock && \
|
||||||
|
rm -rf /etc/localtime && \
|
||||||
|
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
|
||||||
|
|
||||||
|
RUN yum -y install kde-l10n-Chinese telnet reinstall glibc-common && \
|
||||||
|
localedef -c -f UTF-8 -i zh_CN zh_CN.utf8
|
||||||
|
|
||||||
|
ENV LC_ALL "zh_CN.UTF-8"
|
||||||
|
|
||||||
|
|
||||||
RUN cd / && wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz \
|
RUN cd / && wget http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz \
|
||||||
&& tar -zxvf nginx-$NGINX_VERSION.tar.gz \
|
&& tar -zxvf nginx-$NGINX_VERSION.tar.gz \
|
||||||
&& rm -rf nginx-$NGINX_VERSION.tar.gz \
|
&& rm -rf nginx-$NGINX_VERSION.tar.gz \
|
||||||
&& cd nginx-$NGINX_VERSION \
|
&& cd nginx-$NGINX_VERSION \
|
||||||
&& ./configure --prefix=/usr/local/nginx \
|
&& ./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module \
|
||||||
&& make \
|
&& make \
|
||||||
&& make install \
|
&& make install
|
||||||
&& cd .. \
|
|
||||||
&& rm -rf nginx-$NGINX_VERSION
|
|
||||||
|
|
||||||
RUN mkdir -p /nginx/conf && mkdir /nginx/logs/ && mkdir /nginx/www
|
RUN mkdir -p /nginx/conf && mkdir /nginx/logs/ && mkdir /nginx/www
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80 443
|
||||||
|
|
||||||
COPY start.sh /
|
COPY start.sh /
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user