summaryrefslogtreecommitdiffstats
path: root/Services/php/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-12-06 00:29:03 +0100
committerstartxfr <clarue@startx.fr>2014-12-06 00:29:03 +0100
commit391988d9e6ca3dd863d55a2d84189fda6aeb990c (patch)
treed2b74f4a0c2c5de5b53d9cb71b7a470bf338177b /Services/php/Dockerfile
parent49452089e4d3b26d1da96f46b90974f4732d220b (diff)
downloadphpmyadmin-391988d9e6ca3dd863d55a2d84189fda6aeb990c.tar.gz
phpmyadmin-391988d9e6ca3dd863d55a2d84189fda6aeb990c.tar.bz2
phpmyadmin-391988d9e6ca3dd863d55a2d84189fda6aeb990c.tar.xz
phpmyadmin-391988d9e6ca3dd863d55a2d84189fda6aeb990c.zip
changing php startup and adding php.ini and httpd config files
Diffstat (limited to 'Services/php/Dockerfile')
-rw-r--r--Services/php/Dockerfile18
1 files changed, 12 insertions, 6 deletions
diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index ca945ee..2c86f15 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -1,15 +1,21 @@
FROM startx/sv-apache
MAINTAINER Christophe LARUE <dev@startx.fr>
-WORKDIR /src
+USER root
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
-COPY index.php /src/index.php
+ && yum clean all
+# Copy application content
+COPY app/* /var/www/html/
+COPY httpd.conf /etc/httpd/conf.d/sx.conf
+COPY php.ini /etc/php.d/sx.ini
+RUN chmod ug+r /var/www/html/* \
+ && chown -R apache:apache /var/www/html /var/log/httpd
-CMD ["/bin/apache_run.sh"] \ No newline at end of file
+EXPOSE 80
+EXPOSE 443
+VOLUME ["/var/www/html", "/var/log/httpd"]
+CMD ["/sx/httpd_run.sh"] \ No newline at end of file