FROM php:8.3-fpm # Install dependencies & 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 WORKDIR /var/www # Copy project files including entrypoint.sh COPY . . # Beri permission executable ke entrypoint.sh RUN chmod +x /var/www/entrypoint.sh # Set permissions folder storage dan cache RUN mkdir -p storage/framework/{cache,sessions,views} bootstrap/cache && \ chown -R www-data:www-data storage bootstrap/cache && \ chmod -R 775 storage bootstrap/cache EXPOSE 9000 # Set entrypoint ENTRYPOINT ["/var/www/entrypoint.sh"]