SimpleRouter/docker/image-php-7.2/Dockerfile

20 lines
453 B
Docker
Raw Normal View History

2019-01-31 02:24:54 -06:00
FROM php:7.2-apache
2020-01-14 04:04:04 -06:00
# Enable rewrite
2019-01-31 02:24:54 -06:00
RUN a2enmod rewrite
2020-01-14 04:04:04 -06:00
# 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');"
2020-01-14 04:39:36 -06:00
# Update
RUN apt-get update -y
# Install git
RUN apt-get install git -y
2020-01-14 04:49:30 -06:00
# Install zip
RUN apt-get install zip -y