I'm able to upgrade the cURL binary and libs, however PHP still utilizes the old version.
I'm building on top of the official php:7.0-fpm docker container.
First, I've upgraded cURL:
RUN curl -fsSL 'https://curl.haxx.se/download/curl-7.50.3.tar.gz' -o curl.tar.gz \
&& mkdir -p curl \
&& tar -xf curl.tar.gz -C curl --strip-components=1 \
&& rm curl.tar.gz \
&& ( \
cd curl \
&& make \
&& make install \
&& ldconfig \
) \
&& rm -r curl
I've tried:
Use
libtoolcd curl \ && ./buildconf \ && ./configure \ # ...Re-install curl for PHP
RUN docker-php-ext-configure curl --with-curl=/usr/local/lib RUN docker-php-ext-install curl
But this throws the error/warning:
warning: curl (curl.so) is already loaded!
and eventually just ignores that I want to reinstall it.
- Several smaller random stuff
If possible, I'm looking for a solution that doesn't require a complete recompile of PHP.


httpsinstead. It's a shame for a developer and a security issue to use unencrypted protocols for downloading critical software.RUN docker-php-ext-install curldidn't do the trick. Any better ideas?RUN docker-php-ext.....?