mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-26 20:04:45 +01:00
php8 in docker
This commit is contained in:
parent
0a8fef9671
commit
9908102a39
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM php:7.4-zts
|
||||
FROM php:8.0-zts
|
||||
|
||||
ADD https://github.com/ufoscout/docker-compose-wait/releases/download/2.7.3/wait /usr/local/bin/docker-compose-wait
|
||||
|
||||
@ -6,13 +6,13 @@ RUN apt-get update && apt-get upgrade -y \
|
||||
&& apt-get install apt-utils procps -y \
|
||||
# Install main extension
|
||||
&& apt-get install git zip vim libzip-dev libgmp-dev libevent-dev libssl-dev libnghttp2-dev libffi-dev -y \
|
||||
&& docker-php-ext-install -j$(nproc) sockets zip gmp pcntl bcmath ffi \
|
||||
&& docker-php-ext-install -j$(nproc) sockets zip gmp pcntl bcmath ffi mysqli pdo pdo_mysql \
|
||||
# Install additional extension
|
||||
&& mkdir -p /usr/src/php/ext/ && cd /usr/src/php/ext/ \
|
||||
&& pecl bundle event \
|
||||
#&& pecl bundle event \
|
||||
&& pecl bundle ev \
|
||||
&& docker-php-ext-configure event --with-event-core --with-event-extra --with-event-pthreads \
|
||||
&& docker-php-ext-install -j$(nproc) ev event \
|
||||
#&& docker-php-ext-configure event --with-event-core --with-event-extra --with-event-pthreads \
|
||||
&& docker-php-ext-install -j$(nproc) ev \
|
||||
# Install composer
|
||||
&& chmod +x /usr/local/bin/docker-compose-wait \
|
||||
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
|
||||
|
@ -7,5 +7,5 @@ opcache.enable_cli=1
|
||||
opcache.validate_timestamps=1
|
||||
opcache.revalidate_freq=0
|
||||
opcache.huge_code_pages=1
|
||||
opcache.jit_buffer_size=32M
|
||||
opcache.jit_buffer_size=100M
|
||||
opcache.jit=function
|
Loading…
Reference in New Issue
Block a user