File tree Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Expand file tree Collapse file tree 5 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ ENV WORDPRESS_SHA1 9e9745bb8a1166622de866076eac73a49cb3eba0
1818RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_UPSTREAM_VERSION}.tar.gz \
1919 && echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
2020 && tar -xzf wordpress.tar.gz -C /usr/src/ \
21- && rm wordpress.tar.gz
21+ && rm wordpress.tar.gz \
22+ && chown -R www-data:www-data /usr/src/wordpress
2223
2324COPY docker-entrypoint.sh /entrypoint.sh
2425
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
5656 </IfModule>
5757 # END WordPress
5858 EOF
59+ chown www-data:www-data .htaccess
5960 fi
6061fi
6162
@@ -70,6 +71,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
7071}
7172
7273EOPHP
74+ chown www-data:www-data wp-config.php
7375fi
7476
7577set_config () {
@@ -140,6 +142,4 @@ if (!$mysql->query('CREATE DATABASE IF NOT EXISTS `' . $mysql->real_escape_strin
140142$mysql->close();
141143EOPHP
142144
143- chown -R www-data:www-data .
144-
145145exec " $@ "
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
5656 </IfModule>
5757 # END WordPress
5858 EOF
59+ chown www-data:www-data .htaccess
5960 fi
6061fi
6162
@@ -70,6 +71,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
7071}
7172
7273EOPHP
74+ chown www-data:www-data wp-config.php
7375fi
7476
7577set_config () {
@@ -140,6 +142,4 @@ if (!$mysql->query('CREATE DATABASE IF NOT EXISTS `' . $mysql->real_escape_strin
140142$mysql->close();
141143EOPHP
142144
143- chown -R www-data:www-data .
144-
145145exec " $@ "
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ ENV WORDPRESS_SHA1 9e9745bb8a1166622de866076eac73a49cb3eba0
1616RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_UPSTREAM_VERSION}.tar.gz \
1717 && echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
1818 && tar -xzf wordpress.tar.gz -C /usr/src/ \
19- && rm wordpress.tar.gz
19+ && rm wordpress.tar.gz \
20+ && chown -R www-data:www-data /usr/src/wordpress
2021
2122COPY docker-entrypoint.sh /entrypoint.sh
2223
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ if ! [ -e index.php -a -e wp-includes/version.php ]; then
5656 </IfModule>
5757 # END WordPress
5858 EOF
59+ chown www-data:www-data .htaccess
5960 fi
6061fi
6162
@@ -70,6 +71,7 @@ if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROT
7071}
7172
7273EOPHP
74+ chown www-data:www-data wp-config.php
7375fi
7476
7577set_config () {
@@ -140,6 +142,4 @@ if (!$mysql->query('CREATE DATABASE IF NOT EXISTS `' . $mysql->real_escape_strin
140142$mysql->close();
141143EOPHP
142144
143- chown -R www-data:www-data .
144-
145145exec " $@ "
You can’t perform that action at this time.
0 commit comments