FROM webdevops/php-nginx:7.3 MAINTAINER Belman Kraul RUN set -x \ # install pre-requisites. && apt-install locales gnupg \ && sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen \ && locale-gen \ # install the mssql driver. && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \ && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list \ && ACCEPT_EULA=Y apt-install libssl1.0.2 msodbcsql17 mssql-tools unixodbc-dev \ && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile \ && echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc \ && /bin/bash -c "source ~/.bashrc" \ && apt-install libmcrypt-dev libmagickwand-dev \ # install the pecl extensions && pecl install mcrypt-1.0.2 \ && pecl install sqlsrv \ && pecl install pdo_sqlsrv \ && pecl install igbinary \ && pecl install imagick \ && pecl install msgpack \ && echo extension=mcrypt.so > /usr/local/etc/php/conf.d/20-mcrypt.ini \ && echo extension=pdo_sqlsrv.so > /usr/local/etc/php/conf.d/30-pdo_sqlsrv.ini \ && echo extension=sqlsrv.so > /usr/local/etc/php/conf.d/20-sqlsrv.ini \ && echo extension=igbinary.so > /usr/local/etc/php/conf.d/20-igbinary.ini \ && echo extension=imagick.so > /usr/local/etc/php/conf.d/20-imagick.ini \ && echo extension=msgpack.so > /usr/local/etc/php/conf.d/20-msgpack.ini \ # uninstall all headers and libraries && apt-get purge -y -f --force-yes \ libmcrypt-dev libmagickwand-dev unixodbc-dev \ # perform image cleanup. && docker-run-bootstrap \ && docker-image-cleanup