From db0634413e6647c750068afd645ebfe4fe32de77 Mon Sep 17 00:00:00 2001 From: SteamPixel Date: Tue, 14 Jan 2020 11:04:04 +0100 Subject: [PATCH] Added composer to Docker setup --- docker/image-php-7.2/Dockerfile | 7 +++++++ docker/image-php-7.4.1/Dockerfile | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/docker/image-php-7.2/Dockerfile b/docker/image-php-7.2/Dockerfile index fe78a2f..8e00996 100644 --- a/docker/image-php-7.2/Dockerfile +++ b/docker/image-php-7.2/Dockerfile @@ -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');" diff --git a/docker/image-php-7.4.1/Dockerfile b/docker/image-php-7.4.1/Dockerfile index cb85ab6..efec8ff 100644 --- a/docker/image-php-7.4.1/Dockerfile +++ b/docker/image-php-7.4.1/Dockerfile @@ -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');"