-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
60 lines (51 loc) · 1.52 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM php:8.0-apache
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
apt-transport-https \
apt-utils \
curl \
gnupg \
inetutils-ping \
less \
libmcrypt-dev \
libpng-dev \
libzip-dev \
locales \
mariadb-client \
nano \
postfix \
unixodbc-dev \
unzip \
wget \
zlib1g-dev
ADD https://curl.haxx.se/ca/cacert.pem /etc/ssl/certs/mozilla.pem
RUN cp /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled
RUN service postfix start
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen
RUN locale-gen
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list
RUN apt-get update
ENV ACCEPT_EULA=Y
RUN apt-get install -y \
msodbcsql17 \
mssql-tools
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bash_profile
RUN echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc
RUN . ~/.bashrc
RUN docker-php-ext-install \
gd \
mysqli \
opcache \
pdo \
pdo_mysql \
zip
RUN pear config-set php_ini `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"` system
RUN pecl install \
pdo_sqlsrv-5.9.0 \
sqlsrv-5.9.0 \
xdebug
COPY php.ini /usr/local/etc/php/
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer