Skip to content
Permalink
Browse files

Adding sql server drivers to the docker build

  • Loading branch information
perphronesis committed Dec 9, 2019
1 parent e671e75 commit e1d01d07c303b85a900ece70885f446d8016919d
Showing with 10 additions and 3 deletions.
  1. +10 −3 Dockerfile
@@ -23,12 +23,19 @@ RUN apt-get update \
libssl-dev \
openssl \
nano \
wget
wget \
curl

RUN apt-get install -y curl gnupg2 apt-transport-https && \
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 && \
apt-get -y update && \
export ACCEPT_EULA=Y && apt-get -y install msodbcsql17 mssql-tools

RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-configure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu \
&& pecl install sqlsrv-4.1.6.1 \
&& pecl install pdo_sqlsrv-4.1.6.1 \
&& pecl install sqlsrv \
&& pecl install pdo_sqlsrv \
&& docker-php-ext-install \
iconv \
mbstring \

0 comments on commit e1d01d0

Please sign in to comment.
You can’t perform that action at this time.