FROM mediawiki:latest MAINTAINER Adrian Malacoda # Install ImageMagick #RUN apt-get -y update && apt-get -y install imagemagick WORKDIR / # Install composer RUN apt-get -y update && apt-get install -y --no-install-recommends git zip RUN curl --silent --show-error https://getcomposer.org/installer | php && \ chmod +x composer.phar && mv composer.phar /usr/local/bin/composer # Install extensions ADD add_extension.sh /add_extension.sh RUN chmod +x add_extension.sh RUN ./add_extension.sh Scribunto $MEDIAWIKI_BRANCH && \ ./add_extension.sh VisualEditor $MEDIAWIKI_BRANCH ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it ADD setup.sh /setup.sh ADD get-variable /get-variable RUN chmod +x setup.sh && chmod +x wait-for-it && chmod +x get-variable CMD ["/setup.sh"]