# Use the official PHP FPM 8.1 image as the base imageFROM php:8.1-fpm# Install system dependencies and PHP extensionsRUN apt-get update \ && apt-get install -y --no-install-recommends \ curl \ libpq-dev \ libjpeg-dev \ libpng-dev \ libfreetype6-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install -j$(nproc) gd pdo pdo_mysql# Install ComposerRUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer# Set the working directory inside the containerWORKDIR /var/www/html# Expose port 9000 for PHP-FPMEXPOSE 9000# Start PHP-FPMCMD ["php-fpm"]