FROM php:8.2-fpm-alpine # Install system dependencies RUN apk add --no-cache \ icu-dev \ libzip-dev \ libpng-dev \ jpeg-dev \ freetype-dev \ && docker-php-ext-install \ intl \ pdo_mysql \ zip \ gd RUN docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-configure pcntl --enable-pcntl \ && docker-php-ext-install pcntl # Create PHP configuration file RUN echo "memory_limit = 256M" > /usr/local/etc/php/conf.d/custom.ini \ && echo "upload_max_filesize = 100M" >> /usr/local/etc/php/conf.d/custom.ini \ && echo "post_max_size = 100M" >> /usr/local/etc/php/conf.d/custom.ini \ && echo "max_execution_time = 300" >> /usr/local/etc/php/conf.d/custom.ini # Set working directory WORKDIR /var/www/html # Expose port 9000 for PHP-FPM EXPOSE 9000 COPY docker/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT [ "/entrypoint.sh" ] CMD ["php-fpm"]