FROM php:8.3-fpm # Install system dependencies RUN apt-get update && apt-get install -y \ libpq-dev \ zip unzip \ git \ nodejs \ npm \ && docker-php-ext-install pdo pdo_pgsql # Install Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Set working directory WORKDIR /var/www/html # Copy project files COPY . . # Install dependencies RUN composer install --no-dev --optimize-autoloader && npm install && npm run build EXPOSE 80 CMD ["php-fpm"]