wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
343 stars 248 forks source link

Adding php7.3/4-gmp when using this image requires interactive prompt to deal with changed fpm config #10

Closed vincentdigital closed 3 years ago

vincentdigital commented 4 years ago

Dockerfile:

FROM wyveo/nginx-php-fpm:php74

LABEL maintainer colin@wyveo.com

# Remove existing webroot, configure PHP session handler for Redis, install postgresql-client (pg_dump)
RUN apt-get update && \
apt-get install -y libgmp-dev php7.4-gmp

Then build using docker build .

This will ask for a prompt:

Configuration file '/etc/php/7.4/fpm/pool.d/www.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** www.conf (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package php7.4-fpm (--configure):
 end of file on stdin at conffile prompt

Work-around is to answer the prompt like so:

FROM wyveo/nginx-php-fpm:php74

LABEL maintainer colin@wyveo.com

# Remove existing webroot, configure PHP session handler for Redis, install postgresql-client (pg_dump)
RUN apt-get update && \
echo "N" | apt-get install -y libgmp-dev php7.4-gmp