FROM php:8.1-apache # Enable mysqli extension RUN docker-php-ext-install mysqli # Copy all project fines into the web root COPY . /var/www/html # Give read permissions RUN chown -R www-data:www-data /var/www/html/ && chmod -R 755 /var/www/html/ # Give write permissions RUN chmod 777 /var/www/html/Images/ EXPOSE 80