Skip to content

Unzipping of plugins fails. #105

@leon

Description

@leon

I have this strange problem with extracting my plugins.

I've got an image that is based on wordpress:4-fpm which should take all my checked in plugins and add them to the right dir.

FROM wordpress:4-fpm

# Install unzip
RUN apt-get update && apt-get install -y unzip

# Add all plugins from /plugins dir
WORKDIR /var/www/html/wp-content/plugins/

# Copy all plugins, zipped or not to /wp-content/plugins
COPY ./plugins/* ./

# Unzip
RUN unzip "*.zip"

# Permissions on everything
RUN chown -R www-data:www-data .

# Remove plugins
RUN find . -name '*.zip' -delete

The strange thing is that it doesn't work.
If I change from FROM wordpress:4-fpm to FROM debian:jessie it works as expected.

I've done a small repo demonstrating the strange behavior.

https://github.com/leon/docker-error-wordpress-plugin-extraction

Does anyone have a clue as to why this isn't working?
Has it got anything to do with how wordpress copies itself to /var/www/html/?

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