Feat: Add PrimeModule lib in Docker to assist key generation

This commit is contained in:
Alexander Pankratov 2021-11-26 01:06:29 +03:00
parent 76a1c8bd99
commit 394b66c434

View File

@ -11,6 +11,12 @@ 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 ev \ && pecl bundle ev \
&& docker-php-ext-install -j$(nproc) ev \ && docker-php-ext-install -j$(nproc) ev \
# Install PrimeModule for AuthKey generation speedup
&& git clone https://github.com/danog/PrimeModule-ext \
&& cd PrimeModule-ext && make -j$(nproc) \
&& make install \
&& cd ../ \
&& rm -rf PrimeModule-ext/ \
# 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 \