FROM php:8.4-fpm-alpine # Install system dependencies RUN apk add --no-cache \ libzip-dev \ zip \ unzip \ git \ curl \ libpng-dev \ libjpeg-turbo-dev \ freetype-dev \ oniguruma-dev \ xml-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install -j$(nicon) gd zip pdo_mysql mysqli exif pcntl bcmath opcache # Install Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Set working directory WORKDIR /var/www/html # Expose port 9000 for PHP-FPM EXPOSE 9000 # Start PHP-FPM CMD ["php-fpm"]