From 7fe1c9cf9f114d40fe3f534a3902f3dff73c602f Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 6 Dec 2015 16:41:23 +0100 Subject: correcting bug and improve startup display --- 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 51085e9..7cb96b5 100644 --- a/Services/php/Dockerfile +++ b/Services/php/Dockerfile @@ -10,19 +10,21 @@ RUN dnf -y install php php-pecl-mongo php-cli php-pear \ && dnf clean all ENV LOG_PATH=/data/logs/apache_php \ APP_PATH=/data/apache_php \ - STARTUPLOG=/data/logs/apache_php/startup.log + STARTUPLOG=/data/logs/apache_php/startup.log \ + TMP_APP_PATH=/tmp/apache 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 $HTTPDCONF && \ - mkdir $APP_PATH && \ - mkdir $LOG_PATH && \ + mkdir -p $TMP_APP_PATH && \ + mkdir -p $APP_PATH && \ + mkdir -p $LOG_PATH && \ touch $STARTUPLOG -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 +COPY ./ $TMP_APP_PATH +RUN rm -f $TMP_APP_PATH/Dockerfile $TMP_APP_PATH/httpd.conf $TMP_APP_PATH/run.sh && \ + chown -R apache:apache $TMP_APP_PATH $APP_PATH $LOG_PATH && \ + chmod ug+r -R $TMP_APP_PATH $APP_PATH EXPOSE 80 443 VOLUME [$APP_PATH,$LOG_PATH] -- cgit v1.2.3