PHP + Apache Docker custom image

This Docker image aims to be instantiated when wanting to work locally on PHP & Apache.

Build

docker build -t ld-web/php-apache .

Run

# Map a directory to a /php folder created in the container
docker run -d --name php-sf -v $(pwd)/php:/php ld-web/php-apache

Oh My Zsh

Oh My Zsh is installed into the container.

It can be launched from CLI :

docker exec -it php-sf zsh

If container was attached to VSCode, then from a terminal using default bash, run zsh

TODO : See how to make VSCode launch zsh directly