# Base image FROM php:8.3-fpm-alpine # Install required extensions RUN docker-php-ext-install pdo pdo_mysql bcmath # Install Composer COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer # Set working directory WORKDIR /var/www # Copy app files COPY . /var/www # Set permissions RUN chown -R www-data:www-data /var/www # Expose PHP-FPM port EXPOSE 9000 # Start PHP-FPM CMD ["php-fpm"]