2019-04-04 zst php:7.1.11
docker pull zx5435/php:7.1.10
All version is small about 100mb
, quick to download and running fast.
They are cover my work in everywhere, you can try it. include:
- mysql
- postgres
- redis
- mongo
- apcu
- gd
- xdebug
- bcmath
- zip
FROM php:7.1.11-fpm-alpine
RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \
&& apk add --no-cache --virtual .build-deps autoconf g++ libssh2 openssl openssl-dev make pcre-dev tree curl \
&& apk add --no-cache postgresql-dev \
&& docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& pecl install mongodb-1.5.2 redis apcu xdebug \
&& docker-php-ext-enable mongodb redis apcu xdebug \
&& docker-php-ext-install gd pdo_mysql opcache bcmath pgsql pdo_pgsql zip sockets \
&& apk del .build-deps \
&& pecl clear-cache \
&& docker-php-source delete
RUN curl https://getcomposer.org/composer.phar -o /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer \
&& mkdir -p /var/runtime && chmod -R 777 /var/runtime \
&& alias ll='ls -l'
# COPY __cicd__/php/php.ini /usr/local/etc/php/
# COPY __cicd__/php/www.conf /usr/local/etc/php-fpm.d/
# docker build -f Dockerfile.php -t zx5435/php:7.1.11 .
2019-03-07 amqp error
librabbitmq
pecl install amqp
composer config -g repo.packagist composer https://packagist.phpcomposer.com
2018-10-09 bitdata php:7.1.10
FROM php:7.1.10-fpm-alpine
RUN apk add --no-cache freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \
&& apk add --no-cache --virtual .build-deps autoconf g++ libssh2 openssl openssl-dev make pcre-dev \
&& apk add --no-cache postgresql-dev \
&& docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
&& pecl install mongodb-1.5.2 redis apcu xdebug \
&& docker-php-ext-enable mongodb redis apcu xdebug \
&& docker-php-ext-install gd pdo_mysql opcache bcmath pgsql pdo_pgsql zip \
&& apk del .build-deps \
&& pecl clear-cache \
&& docker-php-source delete
RUN curl https://getcomposer.org/composer.phar -o /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer \
&& mkdir -p /var/runtime && chmod -R 777 /var/runtime
# COPY __cicd__/php/php.ini /usr/local/etc/php/
# COPY __cicd__/php/www.conf /usr/local/etc/php-fpm.d/
# docker build -f __cicd__/php/Dockerfile.runtime -t zx5435/php:7.1.10 .