forked from porchn/php5-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
65 lines (53 loc) · 1.76 KB
/
Copy pathDockerfile
File metadata and controls
65 lines (53 loc) · 1.76 KB
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
61
62
63
64
65
FROM php:5.6-apache
#MAINTAINER Bailey <guenter.bailey@bailey-solution.com>
ENV TZ=Europe/Vienna
# Set Server timezone.
RUN echo $TZ > /etc/timezone \
&& dpkg-reconfigure -f noninteractive tzdata \
&& echo date.timezone = $TZ > /usr/local/etc/php/conf.d/docker-php-ext-timezone.ini
RUN mkdir -p /etc/apache2/ssl
# Defaul config php.ini
COPY ./config/php.ini /usr/local/etc/php/
COPY ./index.php /var/www/html/
# RUN apt-get -y update && apt-get -y upgrade
RUN apt-get -y update \
&& apt-get install -y --no-install-recommends \
libmemcached11 \
libmemcachedutil2 \
libmemcached-dev \
libz-dev \
build-essential \
apache2-utils \
libmagickwand-dev \
imagemagick \
libcurl4-openssl-dev \
libssl-dev \
libc-client2007e-dev \
libkrb5-dev \
libmcrypt-dev \
unixodbc-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libgd-dev \
libpng-dev \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/*
# Config Extension
RUN docker-php-ext-configure gd --with-jpeg-dir=/usr/lib --with-freetype-dir=/usr/lib \
&& docker-php-ext-configure imap --with-imap-ssl --with-kerberos \
&& docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr
# Install Extension mysqli mysql mbstring opcache pdo_mysql gd mcrypt zip imap bcmath soap pdo
RUN docker-php-ext-install mysqli mysql mbstring opcache pdo_mysql gd mcrypt zip imap soap pdo pdo_odbc
# Enable Apache mod_rewrite
RUN a2enmod rewrite ssl headers
# Memcache
RUN pecl install memcached-2.2.0 \
&& docker-php-ext-enable memcached
# Imagick
RUN pecl install imagick \
&& docker-php-ext-enable imagick
RUN chown -R www-data:www-data /var/www
# Create Volume
VOLUME ['/etc/apache2/sites-enabled','/var/www','/var/log/apache2']
EXPOSE 80
EXPOSE 443