A comprehensive docker image to run PHP-7.2, 7.4 cli applications like composer, wp-cli, drush, etc
2.6K
Docker image containing Ubuntu 18.04 LTS core with PHP CLI 7.2. This image is designed to be used in AWS environments for high density PHP application hosting. WordPress 5.x and Drupal 7.x are tested to work.
Companion docker container for github.com/rsubr/php-apache-ubuntu and intended to run wp-cli, drush, composer, etc.
To build:
docker build --no-cache -t rsubr/php-ubuntu:latest .
Console access to docker instance with WP ROOT mounted and full php-cli tools
docker run --name=test --rm -ti -v /srv/example.com/www:/var/www/html:rw rsubr/php-ubuntu:latest bash
Update a WordPress site in /srv/example.com/www. On the docker host, ensure wp-cli binary is in /srv/usr-local/bin/wp-cli.
docker run --name=test-wp-update-core --rm -ti -v /srv/usr-local:/usr/local:ro -v /srv/example.com/www:/var/www/html rsubr/php-ubuntu:latest wp-cli --allow-root --path=/var/www/html core update
Content type
Image
Digest
Size
79.2 MB
Last updated
about 5 years ago
docker pull rsubr/php-ubuntu