Last active
September 19, 2019 11:41
-
-
Save s4l1h/78915b69958c884817699095e96f9367 to your computer and use it in GitHub Desktop.
PHP 7 zts pthreads+mongodb+redis+pdo_mysql+pdo_pgsql+mysqli+curl+opcache+composer
This file contains 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-zts | |
RUN apt-get update | |
RUN apt-get install git libssl-dev libpq-dev libcurl4-openssl-dev -y | |
# Install mysqli+opcache+pdo | |
RUN docker-php-ext-install mysqli pdo pdo_mysql pdo_pgsql opcache curl | |
RUN docker-php-ext-enable mysqli pdo pdo_mysql pdo_pgsql opcache curl | |
# Install Redis | |
RUN pecl install redis | |
RUN docker-php-ext-enable redis | |
# Install mongodb | |
RUN pecl install mongodb | |
RUN docker-php-ext-enable mongodb | |
# Install Pthreads | |
RUN git clone https://github.com/krakjoe/pthreads -b master /tmp/pthreads | |
RUN docker-php-ext-configure /tmp/pthreads --enable-pthreads | |
RUN docker-php-ext-install /tmp/pthreads | |
#RUN pecl install pthreads | |
#RUN docker-php-ext-enable pthreads | |
RUN apt-get autoremove -y | |
# Install Composer | |
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN composer --version | |
# Set timezone | |
RUN rm /etc/localtime | |
RUN ln -s /usr/share/zoneinfo/UTC /etc/localtime | |
RUN "date" | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment