From 348568c89ae1ad19270e930c02a1492bc43e99b1 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 28 Nov 2015 19:46:13 +0100 Subject: Adding display of OS flavour at startup and improving flexibility of services with env param --- Services/php/Dockerfile | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'Services/php/Dockerfile') diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile index b46f098..8bb0304 100644 --- a/Services/php/Dockerfile +++ b/Services/php/Dockerfile @@ -8,17 +8,19 @@ RUN dnf -y install php php-pecl-mongo php-cli php-pear \ php-bcmath php-pecl-zip php-php-gettext php-tcpdf \ php-tcpdf-dejavu-sans-fonts php-tidy \ && dnf clean all -COPY httpd.conf /etc/httpd/conf.d/app.conf +ENV LOG_PATH=/data/logs/httpd_php \ + APP_PATH=/data/httpd_php +COPY httpd.conf $HTTPDCONF COPY php.ini /etc/php.d/sx.ini COPY run.sh /bin/ RUN chmod 775 /bin/run.sh && \ - chmod ug+r /etc/httpd/conf.d/app.conf -COPY ./ /data/www -RUN rm -f /data/www/Dockerfile /data/www/httpd.conf /data/www/run.sh && \ - chown -R apache:apache /data/www /data/logs && \ - chmod ug+r -R /data/www + chmod ug+r $HTTPDCONF +COPY ./ $APP_PATH +RUN rm -f $APP_PATH/Dockerfile $APP_PATH/httpd.conf $APP_PATH/run.sh && \ + chown -R apache:apache $APP_PATH $LOG_PATH && \ + chmod ug+r -R $APP_PATH EXPOSE 80 EXPOSE 443 -VOLUME ["/data/www","/data/logs"] +VOLUME [$APP_PATH,$LOG_PATH] CMD ["/bin/run.sh"] \ No newline at end of file -- cgit v1.2.3