update php version
This commit is contained in:
parent
bdf777a5e2
commit
2af71662f6
@ -13,10 +13,10 @@ RUN echo '#!/bin/bash\nphp artisan "$@"' > /usr/bin/art && \
|
||||
wget --no-check-certificate -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \
|
||||
sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' && \
|
||||
apt update && \
|
||||
apt install -y --no-install-recommends libz-dev build-essential php8.3-cli php8.3-bcmath php8.3-bz2 php8.3-curl php8.3-redis php8.3-mongodb php8.3-pgsql php8.3-intl php8.3-mbstring php8.3-zip php8.3-gd php8.3-dom php8.3-mysql php8.3-dev php8.3-sqlite3 php-pear php8.3-memcached
|
||||
apt install -y --no-install-recommends libz-dev build-essential php8.4-cli php8.4-bcmath php8.4-bz2 php8.4-curl php8.4-redis php8.4-mongodb php8.4-pgsql php8.4-intl php8.4-mbstring php8.4-zip php8.4-gd php8.4-dom php8.4-mysql php8.4-dev php8.4-sqlite3 php-pear php8.4-memcached
|
||||
|
||||
RUN pecl channel-update pecl.php.net && MAKEFLAGS="-j $(nproc)" pecl install grpc && pecl install openswoole && strip --strip-debug /usr/lib/php/*/*.so && \
|
||||
apt autoremove --purge -y php8.3-dev php-pear build-essential libz-dev lsb-release && \
|
||||
apt autoremove --purge -y php8.4-dev php-pear build-essential libz-dev lsb-release && \
|
||||
apt-get clean autoclean -y && \
|
||||
apt-get autoremove -y && \
|
||||
rm -rf /var/lib/apt/lists/* && \
|
||||
@ -27,4 +27,4 @@ RUN pecl channel-update pecl.php.net && MAKEFLAGS="-j $(nproc)" pecl install gr
|
||||
|
||||
RUN rm -rf /tmp/*
|
||||
|
||||
COPY php.ini /etc/php/8.3/cli/conf.d/99-custom.ini
|
||||
COPY php.ini /etc/php/8.4/cli/conf.d/99-custom.ini
|
||||
|
Loading…
Reference in New Issue
Block a user