Reorder Dockerfile for a bit more efficient tweaking

This commit is contained in:
Adam Goldsmith 2019-09-27 16:11:14 -04:00
parent 74669e2846
commit 160d40d7d0

View File

@ -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