forked from bylexus/docker-apache-php53
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
35 lines (29 loc) · 1.45 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
FROM ubuntu:14.04
LABEL maintainer="Seti <[email protected]>"
VOLUME ["/var/www"]
RUN apt-get update && \
apt-get install -y python-software-properties software-properties-common && \
add-apt-repository -y ppa:sergey-dryabzhinsky/php53 && \
add-apt-repository -y ppa:sergey-dryabzhinsky/packages && \
apt-get update && \
apt-get install -y \
wget apache2 libapache2-mod-php53 apache2-mpm-prefork \
php53-common php53-cli php53-mod-gd php53-mod-mysql \
php53-mod-bcmath php53-mod-calendar php53-mod-bz2 \
php53-mod-soap php53-mod-xml php53-mod-xmlreader php53-mod-xmlwriter \
php53-mod-ftp php53-mod-imap php53-mod-dom php53-mod-exif \
php53-mod-fileinfo php53-mod-gettext php53-mod-gmp php53-mod-json \
php53-mod-mbstring php53-mod-openssl php53-mod-phar php53-mod-pcntl \
php53-mod-simplexml php53-mod-curl php53-mod-readline php53-mod-tokenizer \
php53-mod-wddx php53-mod-xsl postfix && \
mkdir -p /var/lock/apache2 && mkdir -p /var/run/apache2 && \
a2dismod mpm_event && a2enmod mpm_prefork
COPY apache_default /etc/apache2/sites-available/000-default.conf
COPY run /usr/local/bin/run
RUN chmod +x /usr/local/bin/run && \
a2enmod rewrite php53 && \
rm -rf /etc/php53/cli/conf.d /etc/php53/apache2/conf.d && \
ln -s /etc/php53/conf.d /etc/php53/cli/conf.d && \
ln -s /etc/php53/conf.d /etc/php53/apache2/conf.d
EXPOSE 80
CMD ["/usr/local/bin/run"]