Skip to content

Adding custom theme and plugins #115

@bkcummins

Description

@bkcummins

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

Metadata

Metadata

Assignees

No one assigned

    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