-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
executable file
·40 lines (28 loc) · 999 Bytes
/
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
FROM php:5.6-apache
MAINTAINER Eduardo Malherbi <[email protected]>
# utils
RUN apt-get update && \
apt-get install -y apt-utils freetds-dev sendmail libpng-dev zlib1g-dev
# zip, socket, mbstring
RUN docker-php-ext-install zip sockets mbstring gd
# mysql / mysqli
RUN docker-php-ext-install mysql mysqli pdo_mysql
# mssql
RUN docker-php-ext-configure mssql --with-libdir=lib/x86_64-linux-gnu && \
docker-php-ext-install mssql
RUN docker-php-ext-configure pdo_dblib --with-libdir=lib/x86_64-linux-gnu && \
docker-php-ext-install pdo_dblib
# rewrite
RUN a2enmod rewrite
# remove list
RUN rm -rf /var/lib/apt/lists/*
# 000-default.conf to change apache site settings.
ADD 000-default.conf /etc/apache2/sites-available/
# Ini
COPY php.ini /usr/local/etc/php/
# Uncomment these two lines to fix "non-UTF8" chars encoding and time format problems
ADD freetds.conf /etc/freetds/
ADD locales.conf /etc/freetds/
EXPOSE 80
EXPOSE 443
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]