Added composer to Docker setup

This commit is contained in:
SteamPixel 2020-01-14 11:04:04 +01:00
parent 545d321e0d
commit db0634413e
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,10 @@
FROM php:7.2-apache
# Enable rewrite
RUN a2enmod rewrite
# Install composer
# https://www.hostinger.com/tutorials/how-to-install-composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN php -r "unlink('composer-setup.php');"

View File

@ -1,3 +1,9 @@
FROM php:7.4.1-apache
RUN a2enmod rewrite
# Install composer
# https://www.hostinger.com/tutorials/how-to-install-composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php composer-setup.php --install-dir=/usr/local/bin --filename=composer
RUN php -r "unlink('composer-setup.php');"