From 391988d9e6ca3dd863d55a2d84189fda6aeb990c Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 6 Dec 2014 00:29:03 +0100 Subject: changing php startup and adding php.ini and httpd config files --- Services/php/Dockerfile | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'Services/php/Dockerfile') 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 -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 -- cgit v1.2.3