mediawiki/Dockerfile
2020-01-27 16:47:53 +00:00

24 lines
782 B
Docker

FROM mediawiki:latest
MAINTAINER Adrian Malacoda <adrian.malacoda@monarch-pass.net>
# Install ImageMagick
#RUN apt-get -y update && apt-get -y install imagemagick
# 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
WORKDIR /
# 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"]