diff --git a/Dockerfile b/Dockerfile index 596826eb..d0897714 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,12 +3,11 @@ FROM wordpress:latest RUN apt-get update \ & docker-php-ext-install zip - # install wp cli - RUN curl -L https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -o /usr/local/bin/wp RUN chmod +x /usr/local/bin/wp COPY post_launch.sh /post_launch.sh +COPY sync_sources.sh /sync_sources.sh diff --git a/sync_sources.sh b/sync_sources.sh new file mode 100644 index 00000000..c5fa2aa2 --- /dev/null +++ b/sync_sources.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# run wp-cli cmds from wp install path +cd /var/www/html + +# copy plugin source files to WP path (else changing ownership will change on host) +cp -r /app wp-content/plugins/wordpress-static-html-output + +# www-data to own plugin src files +chown -R www-data:www-data wp-content/plugins/wordpress-static-html-output +chown -R www-data:www-data wp-content/uploads +