Describe how to add extensions into the wordpress image (see docker-library/wordpress#68)

This commit is contained in:
Jan Suchotzki 2015-03-24 18:03:10 +01:00
parent 6670d41fa7
commit 1ca6950c04
1 changed files with 11 additions and 0 deletions

View File

@ -34,3 +34,14 @@ If you'd like to use an external database instead of a linked `mysql` container,
## %%COMPOSE%%
Run `docker-compose up`, wait for it to initialize completely, and visit `http://localhost:8080` or `http://host-ip:8080`.
## Add additional libraries / extensions
This image does not provide any additional php-extensions or other libraries, even if they are required by several plugins. That is because there are so many plugins, requiring so many extensions and libraries, that the image will dramatically increase in size.
If you need one or several extensions or libraries, the easiest was is to create your own image. Base it on the version of the official wordpress image you need and add the extensions you need. The
[documentation of the php image](https://github.com/docker-library/docs/blob/master/php/README.md#how-to-install-more-php-extensions) shows how to accomplish that in detail.
In order to keep your image with the extensions you require up to date, there are features of Docker Hub which help you:
- [Automated Builds](https://docs.docker.com/docker-hub/builds/): Let Docker Hub automatically create a new image from your Dockerfile each time you push changes to it.
- [Repository Links](https://docs.docker.com/docker-hub/builds/#repository-links): Link your docker image to `library/wordpress` so it is automatically rebuild once the official wordpress image is rebuild.