diff options
author | startxfr <clarue@startx.fr> | 2015-11-28 19:46:13 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2015-11-28 19:46:13 +0100 |
commit | 348568c89ae1ad19270e930c02a1492bc43e99b1 (patch) | |
tree | 97514774d5c27789d9383f5085103eb9775b6a52 /Services/php/Dockerfile | |
parent | 05c9aa4a4d3572168878bf0e81eeac724a95454d (diff) | |
download | phpmyadmin-348568c89ae1ad19270e930c02a1492bc43e99b1.tar.gz phpmyadmin-348568c89ae1ad19270e930c02a1492bc43e99b1.tar.bz2 phpmyadmin-348568c89ae1ad19270e930c02a1492bc43e99b1.tar.xz phpmyadmin-348568c89ae1ad19270e930c02a1492bc43e99b1.zip |
Adding display of OS flavour at startup and improving flexibility of services with env param
Diffstat (limited to 'Services/php/Dockerfile')
-rw-r--r-- | Services/php/Dockerfile | 16 |
1 files changed, 9 insertions, 7 deletions
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 |