FROM php:7.3-apache
RUN apt-get update
RUN apt-get install -y libpng-dev
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install pdo pdo_mysql
RUN docker-php-ext-install gd
RUN a2enmod rewrite
ADD ./ /var/www
RUN chmod uog+rwx /var/www/storage/logs
RUN chmod uog+rwx /var/www/storage
WORKDIR /var/www