FROM php:8.3-fpm # Install system dependencies & PHP extensions RUN apt-get update && apt-get install -y \ libzip-dev \ unzip \ git \ libpq-dev \ libicu-dev \ zip \ curl \ && docker-php-ext-install \ intl \ zip \ pdo_pgsql \ bcmath # Install Composer COPY --from=composer:2 /usr/bin/composer /usr/bin/composer # Set working directory WORKDIR /var/www # Copy source COPY . . COPY .env.example .env # Install dependencies RUN composer install --no-interaction --prefer-dist --optimize-autoloader # Generate app key RUN php artisan key:generate # Set permissions RUN chown -R www-data:www-data /var/www \ && chmod -R 775 storage bootstrap/cache \ && chown -R www-data:www-data storage bootstrap/cache EXPOSE 9000 CMD ["php-fpm"]