Skip to content

Commit

Permalink
[php] Amp update to PHP 8.3 (#8615)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Dec 11, 2023
1 parent af85918 commit da5be74
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frameworks/PHP/amp/amp.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /de
RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php
RUN apt-get update -yqq > /dev/null && \
apt-get install -yqq git unzip wget curl build-essential \
php8.2-cli php8.2-mbstring php8.2-dev php8.2-xml php8.2-curl > /dev/null
php8.3-cli php8.3-mbstring php8.3-dev php8.3-xml php8.3-curl > /dev/null

# An extension is required!
# We deal with concurrencies over 1k, which stream_select doesn't support.
RUN wget http://pear.php.net/go-pear.phar --quiet && php go-pear.phar
#RUN apt-get install -y libuv1-dev > /dev/null
RUN apt-get install -y libevent-dev > /dev/null
#RUN pecl install uv-0.2.4 > /dev/null && echo "extension=uv.so" > /etc/php/8.2/cli/conf.d/uv.ini
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.2/cli/conf.d/event.ini
#RUN pecl install uv-0.2.4 > /dev/null && echo "extension=uv.so" > /etc/php/8.3/cli/conf.d/uv.ini
RUN pecl install event-3.0.8 > /dev/null && echo "extension=event.so" > /etc/php/8.3/cli/conf.d/event.ini

ADD ./ /amp
WORKDIR /amp

COPY deploy/conf/* /etc/php/8.2/cli/conf.d/
COPY deploy/conf/* /etc/php/8.3/cli/conf.d/

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer

RUN composer install --prefer-dist --optimize-autoloader --no-dev --quiet
RUN composer install --prefer-dist --optimize-autoloader --no-dev

EXPOSE 8080

Expand Down

0 comments on commit da5be74

Please sign in to comment.