From 160d40d7d08cee4abd7994e7c87f012590749e9e Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 27 Sep 2019 16:11:14 -0400 Subject: [PATCH] Reorder Dockerfile for a bit more efficient tweaking --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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