-
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
Adding custom theme and plugins #115
Comments
You should do this in the entrypoint. That's where the image is actually installing data to /var/www/html. |
@lazyfrosch The entrypoint copies files from |
That being said, I would probably |
great...thx for the feedback guys. |
@md5 yes, but a volume should be touched in the entrypoint, and not in Dockerfile. Or it might now work when mounting in that volume... |
@lazyfrosch The entrypoint already copies from wordpress/apache/docker-entrypoint.sh Line 44 in 2877506
|
What's been said is definitely correct IMO -- if you want to create a "production" version of the I'd note also that bind-mounting into |
I'm having a problem installing a plugin. I can see the directory is correctly copied to the /usr/src/wordpress directory, however it's not copied into the /var/www/html directory at any point. Docker file:
Am I missing something? |
@matanshukry, anything further in your Dockerfile? The entrypoint script will copy from |
I've been trying no end of variations of Dockerfiles to try get this to work for a production image. I have had no luck with the examples given here so I'm wondering if there has been other changes since. Dockerfile is:
Anyone also had any issues with this? Surely it should be easier to embed pre-loaded plugins and themes than it currently is... unless I'm going mad and missing something, which could be the case. |
Is it still true that |
Yes: wordpress/docker-entrypoint.sh Lines 58 to 73 in bf85cc7
|
Should this also copy hidden files and hidden directories? In my case the hidden files and folders are not being copied across, while the other files and directories are copied correctly. If not - how can we copy the hidden files / directories? |
I struggled to build an image which would copy custom themes and plugins to /var/www/html/wp-content yet still retain www-data ownership for these files. I think this was due to the VOLUME in your image.
I was successful with the following.
FROM wordpress
COPY ["wordpress","/usr/src/wordpress"]
RUN chown -R www-data:www-data /usr/src/wordpress/*
Is this the best way to complete this or should I be approaching it differently?
bkc
The text was updated successfully, but these errors were encountered: