FROM php:8.2-fpm # Set working directory WORKDIR /var/www/html # Install system dependencies RUN apt-get update && apt-get install -y \ libpng-dev \ libjpeg-dev \ libfreetype6-dev \ libzip-dev \ zip \ unzip \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install gd pdo pdo_mysql bcmath opcache zip # Copy application files COPY . . # Set proper permissions RUN chown -R www-data:www-data /var/www/html \ && chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache # Set entrypoint script COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"]