Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Provide a php dependency only image without wordpress specific files

Open
#764 4 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker, php

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.

Description

question

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
Dominant language
Shell
Stars
2k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker-library/wordpress

All issues in docker-library/wordpress

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.