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 \
|
||||
default-mysql-client \
|
||||
unzip \
|
||||
subversion \
|
||||
&& curl -sL -o /usr/local/bin/wp \
|
||||
https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
|
||||
&& chmod +x /usr/local/bin/wp \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Pre-install the p2 theme.
|
||||
# p2 turns WordPress into a real-time microblog stream (Twitter-like) —
|
||||
# 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 \
|
||||
# Pre-install the p2 theme via SVN (removed from downloads.wordpress.org).
|
||||
RUN svn export https://themes.svn.wordpress.org/p2/1.5.8/ /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
|
||||
|
|
|
|||
Loading…
Reference in a new issue