Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Jul 5, 2018
1 parent 1602a5a commit 0264339
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ MAINTAINER yansongda <[email protected]>

WORKDIR /www

COPY sources.list /etc/apt/sources.list
COPY php.ini /usr/local/etc/php/conf.d/

RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libbz2-dev libmcrypt-dev libmemcached-dev libssh-dev \
&& pecl install -o -f mongodb swoole redis memcached \
&& docker-php-ext-install opcache bcmath bz2 gd iconv mcrypt mysqli pdo pdo_mysql zip \
Expand All @@ -14,4 +11,7 @@ RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libbz2-dev libmc
&& rm -rf /tmp/pear \
&& curl https://dl.laravel-china.org/composer.phar -o /usr/local/bin/composer \
&& chmod a+x /usr/local/bin/composer \
&& composer config -g repo.packagist composer https://packagist.phpcomposer.com
&& composer config -g repo.packagist composer https://packagist.phpcomposer.com

COPY sources.list /etc/apt/sources.list
COPY php.ini /usr/local/etc/php/conf.d/
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# docker-php7-fpm
Docker with php7-fpm
# docker-php-fpm
Docker with php-fpm

## Usage
### China Region
docker pull registry.cn-shenzhen.aliyuncs.com/yansongda/php7-fpm
docker pull registry.cn-shenzhen.aliyuncs.com/yansongda/php-fpm

### Docker Hub
docker pull yansongda/php7-fpm
docker pull yansongda/php-fpm

## Added ext
- bcmath
Expand All @@ -27,6 +27,8 @@ docker pull yansongda/php7-fpm
- memory_limit = 256M
- post_max_size = 20M
- upload_max_filesize = 20M
- date.timezone = Asia/Shanghai
- max_execution_time = 60

## Added tools
- composer
4 changes: 3 additions & 1 deletion php.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
memory_limit = 256M
post_max_size = 20M
upload_max_filesize = 20M
upload_max_filesize = 20M
date.timezone = Asia/Shanghai
max_execution_time = 60

0 comments on commit 0264339

Please sign in to comment.