fix wordpress
This commit is contained in:
parent
6ab901d11f
commit
c814379f7c
1 changed files with 3 additions and 6 deletions
|
|
@ -5,17 +5,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
less \
|
less \
|
||||||
default-mysql-client \
|
default-mysql-client \
|
||||||
unzip \
|
unzip \
|
||||||
|
subversion \
|
||||||
&& curl -sL -o /usr/local/bin/wp \
|
&& curl -sL -o /usr/local/bin/wp \
|
||||||
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
|
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
|
||||||
&& chmod +x /usr/local/bin/wp \
|
&& chmod +x /usr/local/bin/wp \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Pre-install the p2 theme.
|
# Pre-install the p2 theme via SVN (removed from downloads.wordpress.org).
|
||||||
# p2 turns WordPress into a real-time microblog stream (Twitter-like) —
|
RUN svn export https://themes.svn.wordpress.org/p2/1.5.8/ /var/www/html/wp-content/themes/p2 \
|
||||||
# intentionally weird for a traditional blog context.
|
|
||||||
RUN curl -sL https://downloads.wordpress.org/theme/p2.zip -o /tmp/p2.zip \
|
|
||||||
&& unzip -q /tmp/p2.zip -d /var/www/html/wp-content/themes/ \
|
|
||||||
&& rm /tmp/p2.zip \
|
|
||||||
&& chown -R www-data:www-data /var/www/html/wp-content/themes/p2
|
&& chown -R www-data:www-data /var/www/html/wp-content/themes/p2
|
||||||
|
|
||||||
# Tell WordPress it's behind an HTTPS reverse proxy
|
# Tell WordPress it's behind an HTTPS reverse proxy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue