更新 Dockerfile

This commit is contained in:
Cherry Sakura 2023-10-27 02:50:52 +00:00
parent ea425c0719
commit 708c8c8f75

View File

@ -20,10 +20,12 @@ RUN apt update
RUN apt install -y php8.2-cli php8.2-bcmath php8.2-bz2 php8.2-curl php8.2-redis php8.2-mongodb php8.2-pgsql php8.2-intl php8.2-mbstring php8.2-zip php8.2-gd php8.2-dom php8.2-mysql php8.2-memcached php8.2-dev php-pear libz-dev
# Update pecl protocol
RUN pecl channel-update pecl.php.net
RUN MAKEFLAGS="-j $(nproc)" pecl install grpc
RUN strip --strip-debug /usr/lib/php/*/grpc.so
RUN echo "output_buffering = On" >> /etc/php/8.2/cli/php.ini
RUN echo "extension=grpc.so" >> /etc/php/8.2/cli/php.ini
RUN wget https://mirrors.aliyun.com/composer/composer.phar -O /usr/bin/composer
RUN chmod +x /usr/bin/composer