summaryrefslogtreecommitdiffstats
path: root/Services/php/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Services/php/Dockerfile')
-rw-r--r--Services/php/Dockerfile24
1 files changed, 13 insertions, 11 deletions
diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index fe2e8ca..730c4af 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -1,13 +1,15 @@
-FROM startx/fedora
+FROM startx/sv-apache
MAINTAINER Chistophe LARUE <dev@startx.fr>
-RUN yum -y update && yum clean all
-RUN yum -y install httpd php php-pecl-mongo php-cli php-pear php-gd php-google-apiclient php-pecl-zip php-mcrypt php-tcpdf php-xml-5.5.18-1.fc20 php-mysqlnd php-soap php-pecl-jsonc php-pecl-xdebug php-pdo php-process php-common php-mbstring && yum clean all
-ADD welcome_apache.html /var/www/html/index.html
-
-EXPOSE 80
-
-# avoid some issues observed with container restart
-RUN rm -rf /run/httpd/*
-
-ENTRYPOINT ["/usr/sbin/apachectl", "-D FOREGROUND"] \ No newline at end of file
+WORKDIR /src
+RUN yum -y install php php-pecl-mongo php-cli php-pear \
+ php-gd php-mcrypt php-mysqlnd php-soap php-pecl-xdebug \
+ php-pdo php-process php-common php-mbstring \
+ php-bcmath php-pecl-zip php-php-gettext php-tcpdf \
+ php-tcpdf-dejavu-sans-fonts php-tidy \
+ && yum clean all \
+ && rm -rf /var/www/html \
+ && ln -s /src /var/www/html
+ADD index.php /src/index.php
+
+CMD ["/bin/apache_run.sh"] \ No newline at end of file