Not for use in production, only development. When starting up the user www-data
is given heightened privileges (usermod uid set to 1000), this was done to help ease local development on Linux.
When building the container installs PHP support for a number of php extensions, including: gd, mcrypt, mysql, imagick, redis and enables mod_rewrite in Apache.
This image builds on the official docker php image.
- Run
docker run -p 8080:80 --rm -it -v "$PWD/test":/var/www/html/public craft-test
- Visit
localhost:8080
in your browser. - Editing
test/index.php
will affect the output when refreshing the browser.