Sign inSign up

codycraven/php-node

By codycraven

•Updated over 9 years ago

Image containing PHP and Node, built from Docker Hub official PHP/Node Alpine images.

Image
0

2.6K

codycraven/php-node repository overview

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.

⁠Tags

The tags for this image are broken into two types, main and builder. View all tags⁠.

Examples:

Main 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):

⁠Purpose

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.

⁠Building Your Own

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⁠.

Tag summary

Content type

Image

Digest

Size

42.5 MB

Last updated

over 9 years ago

docker pull codycraven/php-node