FROM php:7.2-apache COPY . /var/www/html/ # Permissions RUN chmod -R 755 /var/www/html/assets && \ find /var/www/html/assets/img -type d -exec chmod 755 {} \; && \ find /var/www/html/assets/img -type f -exec chmod 644 {} \; # Copy entrypoint script COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]