mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 11:54:42 +01:00
Use uv for eventloop
This commit is contained in:
parent
c324de5d21
commit
7f52896a8d
@ -3,12 +3,12 @@ FROM php:8.3-cli
|
||||
RUN apt-get update && apt-get upgrade -y
|
||||
RUN true \
|
||||
# Install main extension
|
||||
&& apt-get install procps git zip vim libzip-dev libgmp-dev libevent-dev libssl-dev libnghttp2-dev libffi-dev libicu-dev libonig-dev libxml2-dev libpng-dev -y \
|
||||
&& apt-get install procps git zip vim libzip-dev libgmp-dev libuv1-dev libssl-dev libnghttp2-dev libffi-dev libicu-dev libonig-dev libxml2-dev libpng-dev -y \
|
||||
&& docker-php-ext-install -j$(nproc) sockets bcmath mysqli pdo_mysql pcntl ffi intl gmp zip gd \
|
||||
# Install additional extension
|
||||
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \
|
||||
&& pecl bundle ev-beta && pecl bundle eio-beta && pecl bundle igbinary \
|
||||
&& docker-php-ext-install -j$(nproc) ev eio igbinary \
|
||||
&& pecl bundle uv && pecl bundle igbinary \
|
||||
&& docker-php-ext-install -j$(nproc) uv igbinary \
|
||||
# Install PrimeModule for AuthKey generation speedup
|
||||
&& git clone https://github.com/danog/PrimeModule-ext \
|
||||
&& cd PrimeModule-ext && make -j$(nproc) \
|
||||
@ -22,8 +22,7 @@ RUN true \
|
||||
&& apt-get autoremove --purge -y && apt-get autoclean -y && apt-get clean -y \
|
||||
&& rm -rf /usr/src
|
||||
|
||||
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.9.0/wait /usr/local/bin/docker-compose-wait
|
||||
RUN chmod +x /usr/local/bin/docker-compose-wait
|
||||
COPY --from=ghcr.io/ufoscout/docker-compose-wait:latest /wait /usr/local/bin/docker-compose-wait
|
||||
|
||||
ADD docker/php/conf.d/. "$PHP_INI_DIR/conf.d/"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user