В докере возникает ошибка :
PHP Warning: PHP Startup: Unable to load dynamic library 'gd2' (tried: /usr/lib/php/20170718/gd2 (/usr/lib/php/20170718/gd2: cannot open shared object file: No such file or directory), /usr/lib/php/20170718/gd2.so (/usr/lib/php/20170718/gd2.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP Warning: Module 'zip' already loaded in Unknown on line 0
Dockerfile
FROM php:7.2-fpm
RUN apt-get update \
&& apt-get install -y \
libpq-dev \
libldb-dev \
libldap2-dev \
libxml2-dev \
libpcre3-dev \
libedit2 \
curl \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
libmcrypt-dev \
libzip-dev \
libgd-dev \
--no-install-recommends \
&& docker-php-ext-install -j$(nproc) iconv zip \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-install mysqli pdo_mysql soap mbstring
Что не так?! Что ему не нравится?!