update composer to latest before running it

This commit is contained in:
Adrian Malacoda 2016-07-10 20:44:59 -05:00
parent ef558e03f2
commit 0135c4edca

View File

@ -9,6 +9,9 @@ ENV MW_VERSION REL1_27
WORKDIR /
# Update composer
RUN composer self-update
# Remove the old hello world app and grab Mediawiki source
RUN apt-get update && apt-get install -yq git && rm -rf /var/lib/apt/lists/*
RUN rm -fr /app && mv /var/www/html /var/www/w && git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git /app