diff --git a/Dockerfile b/Dockerfile index 10822b0..50850e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,3 +58,7 @@ RUN rm /etc/httpd/conf.d/welcome.conf \ && sed -i -e "s/\;error_log\ =\ php_errors\.log/error_log\ =\ \/var\/log\/php_errors\.log/g" /etc/php.ini \ && sed -i -e "s/#LoadModule mpm_event_module modules\/mod_mpm_event.so/LoadModule mpm_event_module modules\/mod_mpm_event.so/g" /etc/httpd/conf.modules.d/00-mpm.conf \ && sed -i -e "s/LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/#LoadModule mpm_prefork_module modules\/mod_mpm_prefork.so/g" /etc/httpd/conf.modules.d/00-mpm.conf + +#install composer +RUN curl -sS https://getcomposer.org/installer | php \ +&& mv composer.phar /usr/local/bin/composer \ No newline at end of file diff --git a/demo/Dockerfile b/demo/Dockerfile index 9f54ebe..d8053c0 100644 --- a/demo/Dockerfile +++ b/demo/Dockerfile @@ -1,4 +1,4 @@ -FROM ohmrefresh/centos7-apache-php7-2-13:0.6 +FROM ohmrefresh/centos7-apache-php7-2-13 #copy web resource RUN mkdir -p /var/www/html/web @@ -6,6 +6,7 @@ ADD web/ /var/www/html/web/ WORKDIR /var/www/html/web/ + #copy config ADD web.conf /etc/httpd/sites-available/web.conf RUN ln -s /etc/httpd/sites-available/web.conf /etc/httpd/sites-enabled/web.conf