FROM php:8.2-fpm MAINTAINER xs ENV TZ="Asia/Shanghai" RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime # Utils RUN apt-get update && \ apt-get install -y --no-install-recommends \ libssl-dev libaio-dev net-tools dnsutils && \ rm -rf /var/lib/apt/lists/* # Composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \ composer self-update --clean-backups && \ composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/ # Core Libs RUN echo "Installing Core Libs..." && \ # GD apt-get update && \ apt-get install -y --no-install-recommends \ libfreetype6-dev libjpeg62-turbo-dev libpng-dev && \ rm -rf /var/lib/apt/lists/* && \ docker-php-ext-configure gd --with-freetype --with-jpeg && \ docker-php-ext-install -j$(nproc) gd && \ # bcmath docker-php-ext-install bcmath && \ # sockets docker-php-ext-install sockets && \ # MySQL extension docker-php-ext-install mysqli pdo_mysql && \ # Redis pecl install redis && \ docker-php-ext-enable redis && \ # ZIP apt-get update && \ apt-get install -y --no-install-recommends \ libzip-dev && \ rm -rf /var/lib/apt/lists/* && \ docker-php-ext-install -j$(nproc) zip # Expose port 9000 EXPOSE 9000 WORKDIR /