FROM mediawiki:latest RUN apt-get update \ && apt-get install -y libldap2-dev git zip \ && rm -rf /var/lib/apt/lists/* \ && docker-php-ext-install -j$(nproc) ldap COPY composer.local.json /var/www/html/ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer RUN cd /var/www/html/ && composer update --no-dev RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \ https://gerrit.wikimedia.org/r/mediawiki/extensions/Scribunto \ /var/www/html/extensions/Scribunto \ && chmod a+x /var/www/html/extensions/Scribunto/includes/engines/LuaStandalone/binaries/lua*_linux_*/lua RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \ https://gerrit.wikimedia.org/r/mediawiki/extensions/LdapAuthentication \ /var/www/html/extensions/LdapAuthentication RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \ https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor.git \ /var/www/html/extensions/VisualEditor \ && cd /var/www/html/extensions/VisualEditor \ && git submodule update --depth 1 --init RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \ https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend \ /var/www/html/extensions/MobileFrontend RUN git clone --depth 1 \ https://github.com/p12tic/NativeSvgHandler.git \ /var/www/html/extensions/NativeSvgHandler RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \ https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror \ /var/www/html/extensions/CodeMirror