Skip to content

Commit 733ebda

Browse files
authored
Merge pull request #21 from perphronesis/pdo-sqlsvr
Adding sql server drivers to the docker build
2 parents e671e75 + e1d01d0 commit 733ebda

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

Dockerfile

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,19 @@ RUN apt-get update \
2323
libssl-dev \
2424
openssl \
2525
nano \
26-
wget
26+
wget \
27+
curl
28+
29+
RUN apt-get install -y curl gnupg2 apt-transport-https && \
30+
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
31+
curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list && \
32+
apt-get -y update && \
33+
export ACCEPT_EULA=Y && apt-get -y install msodbcsql17 mssql-tools
2734

2835
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
2936
&& docker-php-ext-configure pdo_dblib --with-libdir=/lib/x86_64-linux-gnu \
30-
&& pecl install sqlsrv-4.1.6.1 \
31-
&& pecl install pdo_sqlsrv-4.1.6.1 \
37+
&& pecl install sqlsrv \
38+
&& pecl install pdo_sqlsrv \
3239
&& docker-php-ext-install \
3340
iconv \
3441
mbstring \

0 commit comments

Comments
 (0)