Skip to content

Commit

Permalink
php8 in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Feb 27, 2021
1 parent 0a8fef9 commit 9908102
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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

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 \
Expand Down
2 changes: 1 addition & 1 deletion docker/php/conf.d/opcache.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9908102

Please sign in to comment.