Corrected issues with mcrypt build

master
bkraul 2019-02-24 18:52:09 -06:00
parent cbcedeaedb
commit fc59e609a9
1 changed files with 3 additions and 4 deletions

View File

@ -17,7 +17,7 @@ RUN set -x \
&& /bin/bash -c "source ~/.bashrc" \
&& apt-install php7.2-dev php-pear build-essential libmcrypt-dev \
# install the pecl extensions
&& pecl install mcrypt-1.0.1 \
&& pecl install mcrypt-1.0.2 \
&& pecl install sqlsrv \
&& pecl install pdo_sqlsrv \
&& echo extension=mcrypt.so > /etc/php/7.2/fpm/conf.d/20-mcrypt.ini \
@ -26,9 +26,8 @@ RUN set -x \
&& echo extension=mcrypt.so > /etc/php/7.2/cli/conf.d/20-mcrypt.ini \
&& echo extension=pdo_sqlsrv.so > /etc/php/7.2/cli/conf.d/30-pdo_sqlsrv.ini \
&& echo extension=sqlsrv.so > /etc/php/7.2/cli/conf.d/20-sqlsrv.ini \
# uninstall all headers and libraries
&& apt-get purge -y -f --force-yes \
php7.2-dev php-pear build-essential libmcrypt-dev unixodbc-dev \
# remove build software
&& apt remove --auto-remove -y php7.2-dev php-pear build-essential unixodbc-dev \
# perform image cleanup.
&& docker-run-bootstrap \
&& docker-image-cleanup