summaryrefslogtreecommitdiffstats
path: root/Services/php
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
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')
-rw-r--r--Services/php/Dockerfile24
-rw-r--r--Services/php/index.php1
-rw-r--r--Services/php/welcome_apache.html11
3 files changed, 14 insertions, 22 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
diff --git a/Services/php/index.php b/Services/php/index.php
new file mode 100644
index 0000000..c9f5eeb
--- /dev/null
+++ b/Services/php/index.php
@@ -0,0 +1 @@
+<?php phpinfo(); ?> \ No newline at end of file
diff --git a/Services/php/welcome_apache.html b/Services/php/welcome_apache.html
deleted file mode 100644
index 5c9dfd9..0000000
--- a/Services/php/welcome_apache.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <title>STARTX : Fedora + Apache Webserver</title>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- </head>
- <body>
- <div>See <a href="https://registry.hub.docker.com/u/startx/" target="_blank">Docker registry</a></div>
- </body>
-</html>