File tree Expand file tree Collapse file tree 3 files changed +55
-1
lines changed Expand file tree Collapse file tree 3 files changed +55
-1
lines changed Original file line number Diff line number Diff line change 2020 "display_name" : " reactphp" ,
2121 "notes" : " " ,
2222 "versus" : " php"
23+ },
24+ "libuv" : {
25+ "json_url" : " /json" ,
26+ "plaintext_url" : " /plaintext" ,
27+ "port" : 8080 ,
28+ "approach" : " Realistic" ,
29+ "classification" : " Platform" ,
30+ "framework" : " reactphp" ,
31+ "language" : " PHP" ,
32+ "flavor" : " PHP8" ,
33+ "database" : " MySQL" ,
34+ "orm" : " Raw" ,
35+ "platform" : " reactphp" ,
36+ "webserver" : " None" ,
37+ "os" : " Linux" ,
38+ "database_os" : " Linux" ,
39+ "display_name" : " reactphp [libuv]" ,
40+ "notes" : " " ,
41+ "versus" : " reactphp"
2342 }
2443 }]
2544}
Original file line number Diff line number Diff line change 1+ FROM ubuntu:24.04
2+
3+ ARG DEBIAN_FRONTEND=noninteractive
4+
5+ RUN apt-get update -yqq && apt-get install -yqq software-properties-common > /dev/null
6+ RUN LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php > /dev/null
7+ RUN apt-get update -yqq > /dev/null && \
8+ apt-get install -yqq git unzip wget curl build-essential \
9+ php8.4-cli php8.4-mbstring php8.4-dev php8.4-xml > /dev/null
10+
11+ # An extension is required!
12+ # We deal with concurrencies over 1k, which stream_select doesn't support.
13+ # libuv
14+ RUN apt-get install -yqq libuv1-dev > /dev/null \
15+ && pecl install uv-beta > /dev/null \
16+ && echo "extension=uv.so" > /etc/php/8.4/cli/conf.d/uv.ini
17+
18+ # libevent
19+ # RUN apt-get install -y libevent-dev > /dev/null \
20+ # && pecl install event-3.1.4 > /dev/null \
21+ # && echo "extension=event.so" > /etc/php/8.4/cli/conf.d/event.ini
22+
23+ COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
24+
25+ COPY --link deploy/conf/* /etc/php/8.4/cli/conf.d/
26+
27+ WORKDIR /reactphp
28+ COPY --link . .
29+
30+ RUN composer install --prefer-dist --optimize-autoloader --no-dev --quiet
31+
32+ EXPOSE 8080
33+
34+ ENTRYPOINT ["/usr/bin/php" ]
35+ CMD ["server.php" ]
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ COPY --link deploy/conf/* /etc/php/8.4/cli/conf.d/
2727WORKDIR /reactphp
2828COPY --link . .
2929
30- RUN composer install --prefer-dist --optimize-autoloader --no-dev
30+ RUN composer install --prefer-dist --optimize-autoloader --no-dev --quiet
3131
3232EXPOSE 8080
3333
You can’t perform that action at this time.
0 commit comments