mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:14:38 +01:00
Add memprof extension and replace ev/eio with uv
This commit is contained in:
parent
00945a8503
commit
7e98e783b4
@ -12,7 +12,7 @@ RUN apk add make g++ && \
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||
install-php-extensions ffi pq ev-beta eio-beta intl gmp mbstring pdo_mysql xml dom zip opcache && \
|
||||
install-php-extensions ffi pq uv-beta memprof intl gmp mbstring pdo_mysql xml dom zip opcache && \
|
||||
rm /usr/local/bin/install-php-extensions
|
||||
|
||||
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
||||
|
@ -1,30 +0,0 @@
|
||||
FROM php:8.2-fpm-bullseye
|
||||
|
||||
ADD https://raw.githubusercontent.com/danog/docker-php-extension-installer/master/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN curl -sSLf https://github.com/danog/PrimeModule-ext/archive/refs/tags/2.0.tar.gz | tar -xz && \
|
||||
cd PrimeModule-ext-2.0 && \
|
||||
make -j$(nproc) && \
|
||||
make install && \
|
||||
cd .. && \
|
||||
rm -r PrimeModule-ext-2.0
|
||||
|
||||
ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
|
||||
|
||||
RUN chmod +x /usr/local/bin/install-php-extensions && \
|
||||
install-php-extensions ffi pq ev-beta eio-beta intl gmp mbstring pdo_mysql xml dom curl zip opcache && \
|
||||
rm /usr/local/bin/install-php-extensions
|
||||
|
||||
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
|
||||
php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
|
||||
php composer-setup.php && \
|
||||
php -r "unlink('composer-setup.php');" && \
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
||||
RUN apt-get -y install nano unzip && apt-get clean
|
||||
|
||||
ADD ./tests/dockerfiles/php.ini /usr/local/etc/php/php.ini
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
CMD ["php", "/app/bot.php"]
|
Loading…
Reference in New Issue
Block a user