Fix pthreads php 7.2 compilation
This commit is contained in:
parent
f9c7e4b8e4
commit
25e017e0c4
1 changed files with 14 additions and 6 deletions
|
@ -3,15 +3,23 @@ LABEL maintainer "Tony Blyler <me@tonyblyler.com>"
|
|||
|
||||
# FIXME get xdebug working for PHP 7.2 (not officially supported yet)
|
||||
# pecl install xdebug
|
||||
RUN pecl install pthreads && \
|
||||
docker-php-ext-install pcntl sockets && \
|
||||
docker-php-ext-enable pthreads && \
|
||||
# docker-php-ext-enable xdebug && \
|
||||
apt-get update && \
|
||||
RUN apt-get update && \
|
||||
apt-get install -y \
|
||||
git \
|
||||
wget \
|
||||
openssh-client
|
||||
openssh-client && \
|
||||
# pthreads install since pecl seems jacked up
|
||||
git clone --depth=1 https://github.com/krakjoe/pthreads -b master /tmp/pthreads && \
|
||||
cd /tmp/pthreads && \
|
||||
phpize && \
|
||||
./configure && \
|
||||
make && \
|
||||
make install && \
|
||||
cd - && \
|
||||
rm -Rf /tmp/pthreads && \
|
||||
docker-php-ext-install pcntl sockets && \
|
||||
docker-php-ext-enable pthreads
|
||||
# docker-php-ext-enable xdebug
|
||||
|
||||
ENTRYPOINT ["docker-php-entrypoint"]
|
||||
CMD ["php", "-a"]
|
||||
|
|
Loading…
Reference in a new issue