Skip to content

Commit

Permalink
添加PHP5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
wwt142 committed Jun 21, 2018
1 parent d68f3ba commit 5ea1939
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,19 @@ services:
depends_on:
- php
- redis
- php5
php:
build: ./php
restart: always
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./code:/var/www/code"
php5:
build: ./php5
restart: always
volumes:
- "./etc/php/php.ini:/usr/local/etc/php/conf.d/php.ini"
- "./code:/var/www/code"
redis:
build: ./redis
ports:
Expand Down
14 changes: 14 additions & 0 deletions php5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM php:5.6-fpm-alpine

RUN apk update

RUN apk add --no-cache --virtual .build-deps \
g++ make autoconf

RUN apk add --no-cache libpng libpng-dev && docker-php-ext-install gd && apk del libpng-dev

RUN docker-php-ext-install mysql && docker-php-ext-enable mysql

RUN pecl install redis-4.0.1 \
&& docker-php-ext-enable redis \
&& docker-php-ext-install mysqli && docker-php-ext-enable mysqli && docker-php-ext-install pdo pdo_mysql

0 comments on commit 5ea1939

Please sign in to comment.