FROM php:8.2-fpm-alpine # Install necessary PHP extensions RUN docker-php-ext-install pdo pdo_mysql # Configure PHP settings RUN echo "upload_max_filesize = 10240M\npost_max_size = 10240M\nmax_execution_time = 300\nmax_input_time = 300" > /usr/local/etc/php/conf.d/uploads.ini # Create uploads directory and set permissions for www-data user RUN mkdir -p /var/www/uploads && chown -R www-data:www-data /var/www/uploads && chmod -R 775 /var/www/uploads # Set the working directory WORKDIR /var/www/html # Copy your application files (example) COPY . /var/www/html # Expose the port EXPOSE 9000 # Start PHP-FPM service CMD ["php-fpm"]