代码拉取完成,页面将自动刷新
#FROM mycujoo/nginx-http-flv-module
FROM nginx:latest
RUN mkdir /temp
RUN apt-get -y update
RUN apt -y install gcc make
ADD nginx-http-flv-module-1.2.10 /temp/nginx-http-flv-module
ADD nginx-1.20.2 /temp/nginx-1.2.1
ADD perl-5.28.0 /temp/perl-5.28.0
ADD pcre-8.38.tar.gz /temp/
ADD zlib-1.2.11.tar.gz /temp/
ADD openssl-OpenSSL_1_1_1m /temp/openssl
RUN apt -y install g++
RUN apt-get -y autoremove openssl
RUN apt-get -y install libssl-dev build-essential libidn11-dev libidn11 libssl-dev
RUN cd /temp && cd nginx-1.2.1 && ls && ./configure --prefix=/usr/local/nginx/ --add-module=../nginx-http-flv-module --with-http_stub_status_module --with-http_gunzip_module --with-http_ssl_module --with-pcre=../pcre-8.38 --with-zlib=../zlib-1.2.11 --with-openssl=../openssl && make && make install
#RUN cd /temp && cd nginx-1.2.1 && ls && ./configure --prefix=/usr/local/nginx/ --add-module=../nginx-http-flv-module --with-http_stub_status_module --with-http_ssl_module --with-pcre=../pcre-8.38 --with-zlib=../zlib-1.2.11 --with-openssl=../openssl && make && make install
#RUN cd /temp && cd nginx-1.2.1 && ls && ./configure --prefix=/usr/local/nginx --add-module=../nginx-http-flv-module --with-pcre=../pcre-8.38 --with-openssl=../openssl-1.0.2l --with-zlib=../zlib-1.2.11 && make && make install
RUN chmod +x /usr/local/nginx/sbin/nginx
RUN ln -s /usr/local/nginx/sbin/nginx /usr/bin/nginx
RUN cp -rf /usr/local/nginx /tmp/
#RUN cp -rf /opt/nginx/nginx.conf /tmp/nginx/conf/
#RUN chmod +x /opt/nginx/sbin/nginx
#RUN ln -s /opt/nginx/sbin/nginx /usr/bin/nginx
#RUN cp -rf /opt/nginx/ /tmp/
ADD docker-run.sh /
RUN chmod +x /docker-run.sh
RUN rm -rf /temp/
RUN apt-get -y autoremove gcc make libssl-dev build-essential libidn11-dev libidn11 libssl-dev
RUN rm -rf /var/lib/apt/lists/*
#CMD ["/usr/local/nginx/sbin/nginx"]
#CMD ["sh","-c","/docker-run.sh"]
ENTRYPOINT ["/docker-run.sh"]
#CMD ["nginx","-g","daemon off;"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。