./configure:错误:HTTP gzip模块需要zlib库

我是新来的docker/容器。

我正在尝试运行一个修复程序,使用以下命令来修复mup-front的openSSL漏洞:

docker build ./ 

它编译到一个点,然后错误

 ./configure: error: the HTTP gzip module requires the zlib library. You can either disable the module by using --without-http_gzip_module option, or install the zlib library into the system, or build the zlib library statically from the source with nginx by using --with-zlib=<path> option. 

我正在运行一个如此安装zlib与酿造的Mac。 我search了很长时间,但很难find这个错误。

由于这个错误,它也无法在docker.io中build立自动化

您引用的Dockerfile

https://github.com/meteorhacks/mup-frontend-server/blob/master/Dockerfile

以。。开始

FROM debian

所以你需要在Dockerfile中有这样一行,在你需要zlib的地方

RUN apt-get update && apt-get install -y \ zlib \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/*

在一个RUN中,你更新,安装和清理

 yum install -y httpd-devel pcre perl pcre-devel zlib zlib-devel GeoIP GeoIP-devel Download required packages cd wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.10.tar.gz wget http://zlib.net/zlib-1.2.5.tar.gz wget ftp://ftp.openssl.org/source/openssl-0.9.8o.tar.gz Now you have to untar these files. tar -xvf zlib-1.2.5.tar.gz tar -xvf pcre-8.10.tar.gz tar -xvf openssl-0.9.8o.tar.gz