summaryrefslogtreecommitdiffstats
path: root/Services/php/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Services/php/Dockerfile')
-rw-r--r--Services/php/Dockerfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Services/php/Dockerfile b/Services/php/Dockerfile
index 62b9564..ee02d89 100644
--- a/Services/php/Dockerfile
+++ b/Services/php/Dockerfile
@@ -9,12 +9,16 @@ RUN dnf -y install php php-pecl-mongo php-cli php-pear \
php-tcpdf-dejavu-sans-fonts php-tidy \
&& dnf clean all
ENV LOG_PATH=/data/logs/apache_php \
- APP_PATH=/data/apache_php
+ APP_PATH=/data/apache_php \
+ STARTUPLOG=/data/logs/apache_php/startup.log
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
+ chmod ug+r $HTTPDCONF && \
+ mkdir $APP_PATH && \
+ mkdir $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 && \