加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 6.80 KB
一键复制 编辑 原始数据 按行查看 历史
LateWinter 提交于 2022-01-12 14:08 . nginx:1.20.2
#FROM mycujoo/nginx-http-flv-module
FROM nginx:1.20.2
#FROM winter227/ubuntu-base
RUN mkdir /temp
ADD amode /temp/
RUN apt update \
&& apt install -y --no-install-recommends \
net-tools \
curl \
wget \
fontconfig \
tzdata \
tini \
sqlite3 \
gcc g++ make libssl-dev build-essential libidn11-dev libidn11 libssl-dev \
&& apt-get -y autoremove openssl \
&& cd /temp && ls && cd nginx-1.20.2 && ls && ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --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-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre=../pcre-8.38 --with-zlib=../zlib-1.2.11 --with-cc-opt='-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-1.20.2/debian/debuild-base/nginx-1.20.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --add-module=../nginx-http-flv-module-1.2.10 && make && mv /temp/nginx-1.20.2/objs/nginx /usr/sbin/ \
&& rm -rf /temp/ \
&& apt-get -y autoremove gcc g++ make libssl-dev build-essential libidn11-dev libidn11 libssl-dev \
&& fc-cache -f -v \
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* \
&& cp -rf /etc/nginx /tmp/ && cp -rf /usr/share/nginx/html /tmp/
#ADD amode /temp/
#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-get -y autoremove openssl
#RUN cd /temp && ls && cd nginx-1.20.2 && ls && ./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --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-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-stream_ssl_preread_module --with-pcre=../pcre-8.38 --with-zlib=../zlib-1.2.11 --with-cc-opt='-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-1.20.2/debian/debuild-base/nginx-1.20.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --add-module=../nginx-http-flv-module-1.2.10 && make && mv /temp/nginx-1.20.2/objs/nginx /usr/sbin/
#./configure --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx --modules-path=/usr/lib/nginx/modules --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --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-compat --with-file-aio --with-threads --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_flv_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_random_index_module --with-http_realip_module --with-http_secure_link_module --with-http_slice_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_realip_module --with-stream_ssl_module --with-pcre=../pcre-8.38 --with-zlib=../zlib-1.2.11 --with-stream_ssl_preread_module --with-cc-opt='-g -O2 -ffile-prefix-map=/data/builder/debuild/nginx-1.20.2/debian/debuild-base/nginx-1.20.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fPIC' --with-ld-opt='-Wl,-z,relro -Wl,-z,now -Wl,--as-needed -pie' --add-module=../nginx-http-flv-module-1.2.10 && make
#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
# && rm -rf /temp/ \
# && apt-get -y autoremove gcc make libssl-dev build-essential libidn11-dev libidn11 libssl-dev \
# && fc-cache -f -v \
# && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* \
#CMD ["/usr/local/nginx/sbin/nginx"]
#CMD ["sh","-c","/docker-run.sh"]
ENTRYPOINT ["/docker-run.sh"]
#CMD ["nginx","-g","daemon off;"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化