Browse Source

Install ext-event for better performance (#4681)

Vladimir Goncharov 6 years ago
parent
commit
16948b05c9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      frameworks/PHP/workerman/workerman.dockerfile

+ 3 - 0
frameworks/PHP/workerman/workerman.dockerfile

@@ -9,6 +9,9 @@ RUN apt-get update -yqq > /dev/null && \
 
 RUN apt-get install -yqq composer > /dev/null
 
+RUN apt-get install -y php-pear php-dev libevent-dev > /dev/null
+RUN printf "\n\n /usr/lib/x86_64-linux-gnu/\n\n\nno\n\n\n" | pecl install event > /dev/null && echo "extension=event.so" > /etc/php/7.3/cli/conf.d/event.ini
+
 COPY deploy/conf/* /etc/php/7.3/fpm/
 
 ADD ./ /workerman