Created
July 5, 2019 15:18
-
-
Save jansilvo/d05f2e6620ef273ae5483bd1ed15ff87 to your computer and use it in GitHub Desktop.
php7.2-zts+ptherad+parallel+shmop+sysvmsg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.2-zts-alpine | |
RUN apk update && apk upgrade \ | |
&& apk add --no-cache git bash \ | |
g++ make autoconf \ | |
nano zip libxml2-dev libmemcached-dev \ | |
libxml2-dev icu-dev curl-dev pcre-dev | |
RUN pecl install xdebug \ | |
&& pecl install parallel \ | |
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \ | |
&& docker-php-ext-install curl \ | |
&& docker-php-ext-install opcache \ | |
&& docker-php-ext-install pcntl \ | |
&& docker-php-ext-install pdo_mysql \ | |
&& docker-php-ext-install shmop \ | |
&& docker-php-ext-install sysvmsg | |
RUN curl -sSL https://github.com/krakjoe/pthreads/archive/master.zip -o /tmp/pthreads.zip \ | |
&& unzip /tmp/pthreads.zip -d /tmp \ | |
&& cd /tmp/pthreads-* \ | |
&& phpize \ | |
&& ./configure \ | |
&& make \ | |
&& make install \ | |
&& rm -rf /tmp/pthreads* \ | |
&& docker-php-ext-enable parallel \ | |
&& docker-php-ext-enable pthreads \ | |
&& docker-php-ext-enable xdebug \ | |
&& apk del --purge autoconf g++ make | |
# Install composer | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN rm -rf /appcode/var/cache/* | |
RUN mv /etc/profile.d/color_prompt /etc/profile.d/color_prompt.sh \ | |
&& echo -e "alias egrep='egrep --color=auto'\n\ | |
alias l='ls -CF'\n\ | |
alias la='ls -A'\n\ | |
alias ll='ls -alF'\n\ | |
alias ls='ls --color=auto'" >> /etc/profile.d/aliases.sh | |
CMD ["php", "-a"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment