FROM php:8.4-fpm # Set working directory WORKDIR /var/www # Install dependencies RUN apt-get update && apt-get install -y \ libssl-dev \ build-essential \ libpng-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ locales \ zip \ jpegoptim optipng pngquant gifsicle \ vim \ unzip \ git \ curl \ wget \ nano \ libonig-dev \ libzip-dev \ libicu-dev \ sendmail \ libxml2-dev \ cron # Install extensions RUN docker-php-ext-install pdo_mysql mbstring zip exif pcntl intl mysqli gd RUN docker-php-ext-install sockets # Get latest Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # get latest nodejs RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - RUN apt-get install -y nodejs # Expose port 9000 and start php-fpm server EXPOSE 9000 CMD ["php-fpm"]