Image containing PHP and Node, built from Docker Hub official PHP/Node Alpine images.
2.6K
All tags for this image are based on Alpine with PHP and Node.js support. The image starts by using the official PHP Alpine image. It then pulls in the Dockerfile from the official Node.js Alpine image and builds it atop the PHP image.
The tags for this image are broken into two types, main and builder. View all tags.
Examples:
codycraven/php-node:latest (main/Dockerfile)codycraven/php-node:php-7.1.4--node-6.10.2codycraven/php-node:latest--builder (builder/Dockerfile)codycraven/php-node:php-7.1.4--node-6.10.2--builderMain tags include the PHP and Node version they are named after. They also include the latest Yarn and Composer from the time of the build.
Builder tags extend the main tag their name matches but also include additional common build dependencies that may be encountered when performing an npm install, yarn install, or composer install. Additional packages (note Alpine version will be based on the PHP Alpine image extended from):
While not best practice, it is once in a while necessary to include two different processes within a single Docker container. I ran into this issue when attempting to use Pattern Lab (Node.js) with Twig (PHP) templates.
If you need to use a PHP/Node version combination that is not included in the tags available on Docker Hub, you can build your own.
Content type
Image
Digest
Size
42.5 MB
Last updated
over 9 years ago
docker pull codycraven/php-node