Public | Automated Build

Last pushed: 2 years ago
Short Description
Environment Ubuntu, php7-fpm and nginx
Full Description

Ubuntu, php7-fpm and Nginx

Configure your dns in file resolv.conf before build, default is:


Xdebug is disabled by default, by questions of performance when executing composer, for enable xdebug only execute
one alias created on build, php_xdebug ,for example when execute your tests with phpunit, because is necessary for
to generate your tests coverage.

php_xdebug vendor/bin/phpunit

To build execute:

docker build -t php:7.0 .

Lauching a container from your new image:

docker run -d -P --name php7-nginx php:7.0

Binding to a specific port:

docker run -d -p 8080:80 --name php7-nginx php:7.0

Bind mount a volume:

docker run -d -v /home/user/workspaces/app/:/var/www php:7.0

Access a shell:

docker run -it --name php-nginx-cli php:7.0 /bin/bash



Docker Pull Command