Separate the PHP versions to multiple dockerfiles

Because there's some difference in installing some libraries
between PHP 5 and PHP 7. There must be multiple php dockerfiles.
For that I created 3 docker files each of a different version,
this will make it easy for the users to switch between the PHP
version by just editing the docker-compose file and not touching
the dockerfiles.
This commit is contained in:
Mahmoud Zalt
2016-05-14 04:50:47 +03:00
parent 7f4e411d3d
commit 405067d4af
5 changed files with 67 additions and 12 deletions

View File

@ -18,7 +18,9 @@ services:
### PHP Container ###########################################
php:
build: ./php
build:
context: ./php
dockerfile: Dockerfile-php-70
volumes:
- ../:/var/www/laravel
- ./logs/php/:/usr/local/var/log