diff --git a/Dockerfile b/Dockerfile index 71960a4..23f89e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -81,3 +81,6 @@ RUN git clone --depth 1 -b REL${MEDIAWIKI_MAJOR_VERSION/./_} \ # reset back to default shell SHELL ["/bin/sh", "-c"] + +# run update script on start +CMD ["sh", "-c", "(sleep 5; php /var/www/html/maintenance/update.php --quick --quiet) & apache2-foreground"]