diff options
Diffstat (limited to 'Services/php')
-rw-r--r-- | Services/php/Dockerfile | 24 | ||||
-rw-r--r-- | Services/php/index.php | 1 | ||||
-rw-r--r-- | Services/php/welcome_apache.html | 11 |
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> |