docker-library / docker-library/wordpress
Provide a php dependency only image without wordpress specific files
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 2k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
Could it be possible for the WordPress docker image to provide a php dependency only tag variant ?
The regular image currently provides a zip with a version of WordPress and a custom entry point. But you sometimes do not need thoses files and they might also mess your custom setup (for example extracting WP while it shouldn't).
It would be great if this current image is split into 2 stages, one for the php dependencies, and the next one for the wordpress specific files. This should allow me to reuse the wordpress image to build my own docker image ?
I would see maybe a stage around here: https://github.com/docker-library/wordpress/blob/67e960d91c547417cd879adddf9c1cf0f1dc7a95/latest/php7.4/apache/Dockerfile#L123
We could then have for example:
FROM wordpress:apache-bare
COPY . /var/www/html
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with latest/php7.4/apache/Dockerfile around line 123, the location identified in the issue, and inspect how the current image packages WordPress files and its entry point. Define a separate dependency-only image stage or tag that can be used with FROM, while preserving the existing WordPress image behavior; verify the example custom image can reuse it without those files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, php
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100