-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide a php dependency only image without wordpress specific files #764
Comments
I guess that's the idea, but including all the php extensions and settings required/recommended by wordpress. |
My goal is to bring my Wordpress based application under version control. I'm using PHP Composer and roots/bedrock to compose my webroot directory and I use a .env file for the settings and secrets. I prefer to use an official docker image from Wordpress so that I don't have to do the maintenance of PHP configuration and extensions myself. Workarounds I can think off:
Both are not very attractive. |
I used a dirty workaround for now (feel free to propose some improvement): FROM wordpress:6.1-php8.0-apache as wordpress
RUN set -eux; \
rm -Rf \
/usr/local/bin/docker-entrypoint.sh \
/usr/src/wordpress \
/var/www/html/*
FROM scratch
COPY --from=wordpress / /
CMD ["apache2-foreground"] |
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:
wordpress/latest/php7.4/apache/Dockerfile
Line 123 in 67e960d
We could then have for example:
The text was updated successfully, but these errors were encountered: