Docker with all php 7.0 extensions, composer, apache and pecl repository enabled and prestissimo
172
Install php7.0 plus all dependecies, enable PECL repository from ppa:ondrej/php, install composer and "prestissimo" package to speedup the installation of packages.
For development purpose mount the volume under the "app" folder, so the files updated there are reloaded in the container running php.
To override php.ini or vhost.conf mount the files when running the container.
docker build -t php7-apache .
docker run -d -p 8090:80 --rm --name php7-apache -v $(pwd)/app/:/var/www/webapp -v $(pwd)/vhost.conf:/etc/apache2/sites-available/000-default.conf -v $(pwd)/php.ini:/etc/php/7.0/apache2/php.ini php7-apache
docker exec -it php7-apache bash
From here we can use for example:
composer install
to install dependecies
Content type
Image
Digest
Size
221.6 MB
Last updated
over 8 years ago
docker pull gabrielem0/docker-php70-apache