summaryrefslogtreecommitdiffstats
path: root/Services/php/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
committerstartxfr <clarue@startx.fr>2014-11-20 03:17:46 +0100
commita699d0d06feeb1859efea16dd6b3df17901a1bc5 (patch)
tree3a2646acb64a4a9d2440549b2a895648b9289466 /Services/php/Dockerfile
parent8829f895c890685cc25fe3022299b4275808dc06 (diff)
downloadphpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.gz
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.bz2
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.tar.xz
phpmyadmin-a699d0d06feeb1859efea16dd6b3df17901a1bc5.zip
modif des services et ajout de memcache, apache et nodejs
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