Public Repository

Last pushed: 6 months ago
Short Description
PHP CLI Debian Application
Full Description

#https://store.docker.com/images/9c2c5426-0cca-4a30-a450-b2961541c6dc?tab=description

FROM php:7.1-cli

MAINTAINER bravist chenghuiyong1987@gmail.com

https://hub.docker.com/r/phpdocker/phpdocker/~/dockerfile/

images

RUN apt-get update \
&& apt-get install -y \
apt-utils \
wget \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev \
libgd-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install \
gd \
exif

xml

RUN apt-get update \
&& apt-get install -y \
libxml2-dev \
libxslt-dev \
&& docker-php-ext-install \
dom \
xmlrpc \
xsl

database

RUN docker-php-ext-install \
mysqli \
pdo \
pdo_mysql

compression

RUN apt-get update \
&& apt-get install -y \
libbz2-dev \
zlib1g-dev \
&& docker-php-ext-install \
zip \
bz2

https://yeasy.gitbooks.io/docker_practice/content/image/build.html

RUN docker-php-ext-install \
mbstring \
json \
bcmath \
pcntl

composer

RUN curl -sS https://getcomposer.org/installer | \
php -- --install-dir=/usr/bin/ --filename=composer

https://yeasy.gitbooks.io/docker_practice/content/image/dockerfile/user.html

建立 php-cli 用户

#RUN useradd -r -g root php-cli

#USER php-cli

Docker Pull Command
Owner
bravist