Remove parallel extension from Docker.

This commit is contained in:
Alexander Pankratov 2020-11-29 02:41:03 +03:00
parent d1d3e1132b
commit 5bb43c71bd
2 changed files with 3 additions and 4 deletions

View File

@ -11,9 +11,8 @@ RUN apt-get update && apt-get upgrade -y \
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \ && mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \
&& pecl bundle event \ && pecl bundle event \
&& pecl bundle ev \ && pecl bundle ev \
&& pecl bundle parallel \
&& docker-php-ext-configure event --with-event-core --with-event-extra --with-event-pthreads \ && docker-php-ext-configure event --with-event-core --with-event-extra --with-event-pthreads \
&& docker-php-ext-install -j$(nproc) ev event parallel \ && docker-php-ext-install -j$(nproc) ev event \
# Install composer # Install composer
&& chmod +x /usr/local/bin/docker-compose-wait \ && chmod +x /usr/local/bin/docker-compose-wait \
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \ && curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
@ -26,7 +25,7 @@ COPY . /app
WORKDIR /app WORKDIR /app
RUN cp -a docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" \ RUN cp -a docker/php/conf.d/. "$PHP_INI_DIR/conf.d/" \
&& composer install --no-dev \ && composer install --no-dev --ignore-platform-reqs \
&& composer clear && composer clear
VOLUME ["/app/sessions"] VOLUME ["/app/sessions"]

View File

@ -30,7 +30,7 @@ Fast, simple, async php telegram api server:
### Manual: ### Manual:
1. Requirements: 1. Requirements:
* ssh / cli * ssh / cli
* php 7.4 * php 7.4 or php 8
* composer * composer
* git * git
* Mysql/MariaDB (optional) * Mysql/MariaDB (optional)