title: Docker PHP-FPM Alpine with SQLSRV Driver Error
body: <p>I am getting this error when I try to connect to the sqlserver db:</p>
  
  <pre><code>Array ( [0] =&gt; Array ( [0] =&gt; IMSSP [SQLSTATE] =&gt; IMSSP [1] =&gt; -49 [code] =&gt; -49 [2] =&gt; This extension 
  requires the Microsoft ODBC Driver for SQL Server. Access the following URL to download the ODBC 
  Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 [message] =&gt; This 
  extension requires the Microsoft ODBC Driver for SQL Server. Access the following URL to download the 
  ODBC Driver for SQL Server for x64: https://go.microsoft.com/fwlink/?LinkId=163712 ) )
  </code></pre>
  
  <p>My Dockerfile below:</p>
  
  <pre><code>FROM microsoft/mssql-tools as mssql
  FROM php:7.2-fpm-alpine
  
  COPY --from=mssql /opt/microsoft/ /opt/microsoft/
  COPY --from=mssql /opt/mssql-tools/ /opt/mssql-tools/
  COPY --from=mssql /usr/lib/libmsodbcsql-13.so /usr/lib/libmsodbcsql-13.so
  
  RUN apk update \
  &amp;&amp; apk add  --no-cache git mysql-client curl libmcrypt libmcrypt-dev openssh-client icu-dev 
  unixodbc-dev \
  libxml2-dev freetype-dev libpng-dev libjpeg-turbo-dev g++ make autoconf \
  &amp;&amp; docker-php-source extract \
  &amp;&amp; pecl install xdebug redis \
  &amp;&amp; docker-php-ext-enable xdebug redis \
  &amp;&amp; docker-php-source delete \
  &amp;&amp; docker-php-ext-install pdo_mysql soap intl zip \
  &amp;&amp; pecl install \
      sqlsrv \
      pdo_sqlsrv \
  &amp;&amp; docker-php-ext-enable --ini-name 30-sqlsrv.ini sqlsrv \
  &amp;&amp; docker-php-ext-enable --ini-name 35-pdo_sqlsrv.ini pdo_sqlsrv \
  &amp;&amp; echo "xdebug.remote_enable=on" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
  &amp;&amp; echo "xdebug.remote_autostart=off" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
  &amp;&amp; echo "xdebug.remote_port=10000" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
  &amp;&amp; echo "xdebug.remote_handler=dbgp" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
  &amp;&amp; echo "xdebug.remote_connect_back=0" &gt;&gt; /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini \
  #&amp;&amp; curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
  &amp;&amp; rm -rf /tmp/*
  
  CMD ["php-fpm", "-F"]
  
  WORKDIR /var/www/cssp
  
  EXPOSE 9000
  </code></pre>
  
  <p>It seems there is a problem with the installation of the driver
  Has anyone tried this before? Please share. Thank you.</p>