diff --git a/Dockerfile b/Dockerfile index 8b04e6e..f67aebe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,10 @@ RUN apt-get update \ && 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 \ @@ -33,6 +37,3 @@ RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \ /var/www/html/extensions/CodeMirror -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