Skip to content

Commit

Permalink
add composer
Browse files Browse the repository at this point in the history
  • Loading branch information
authapon-ohm committed Aug 12, 2019
1 parent 6730b8e commit 37cf6c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion demo/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
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
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
Expand Down

0 comments on commit 37cf6c1

Please sign in to comment.