Skip to content

No site: WordPress files not copying to /var/www/html #77

@joemaller

Description

@joemaller

Need to remove this WORKDIR statement: https://github.com/ideasonpurpose/docker-wordpress-dev/blame/894f14dd55fb8681fd4658e59ac78737877a5dcf/Dockerfile#L102

Image

Because WordPress uses $PWD when copying files on first run, that WORKDIR statement caused the core WordPress files to be copied to /usr/src instead of /var/www/html, so local sites totally broke since they had no files to serve.

Image

https://github.com/docker-library/wordpress/blob/77245d4294cadf422ef17bc7fd6d0a9c6ae36d7a/docker-entrypoint.sh#L34-L36

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions