Skip to content

Commit bff283f

Browse files
committed
Install WordPress in advance
1 parent 81f42b1 commit bff283f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,15 @@ RUN sed -i -e "s/^bind-address.*/bind-address = 0.0.0.0/" /etc/mysql/my.cnf \
6868
--dbname=wordpress \
6969
--dbuser=wordpress \
7070
--dbpass=wordpress \
71-
--dbhost=localhost
71+
--dbhost=localhost \
72+
&& wp core install --allow-root \
73+
--admin_name=admin \
74+
--admin_password=admin \
75+
--admin_email=admin@example.com \
76+
--url=http://wocker.dev \
77+
--title=WordPress \
78+
&& wp theme update --allow-root --all \
79+
&& wp plugin update --allow-root --all
7280
RUN chown -R wocker:wocker /var/www/wordpress
7381

7482
#

0 commit comments

Comments
 (0)