2019-06-16 00:28:13 -05:00
|
|
|
FROM mediawiki:latest
|
2014-12-05 09:02:02 -06:00
|
|
|
MAINTAINER Adrian Malacoda <adrian.malacoda@monarch-pass.net>
|
2014-06-18 16:18:40 -04:00
|
|
|
|
2017-05-21 20:19:09 -05:00
|
|
|
# Install ImageMagick
|
2019-06-16 00:28:13 -05:00
|
|
|
#RUN apt-get -y update && apt-get -y install imagemagick
|
2014-12-05 08:49:05 -06:00
|
|
|
|
2020-01-27 16:54:16 +00:00
|
|
|
WORKDIR /
|
|
|
|
|
2020-01-27 16:47:53 +00:00
|
|
|
# Install composer
|
|
|
|
RUN apt-get -y update && apt-get install -y --no-install-recommends git zip
|
2020-01-27 16:55:58 +00:00
|
|
|
RUN curl --silent --show-error https://getcomposer.org/installer | php && \
|
|
|
|
chmod +x composer.phar && mv composer.phar /usr/local/bin/composer
|
2014-11-24 00:41:30 -06:00
|
|
|
|
2014-11-24 21:59:58 -06:00
|
|
|
# Install extensions
|
|
|
|
ADD add_extension.sh /add_extension.sh
|
|
|
|
RUN chmod +x add_extension.sh
|
2019-06-16 00:57:51 -05:00
|
|
|
RUN ./add_extension.sh Scribunto $MEDIAWIKI_BRANCH && \
|
|
|
|
./add_extension.sh VisualEditor $MEDIAWIKI_BRANCH
|
2014-06-18 17:22:54 -04:00
|
|
|
|
2019-06-16 14:45:09 -05:00
|
|
|
ADD https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh /wait-for-it
|
2014-11-24 00:41:30 -06:00
|
|
|
ADD setup.sh /setup.sh
|
2019-06-16 14:45:09 -05:00
|
|
|
ADD get-variable /get-variable
|
|
|
|
RUN chmod +x setup.sh && chmod +x wait-for-it && chmod +x get-variable
|
2019-06-16 00:28:13 -05:00
|
|
|
CMD ["/setup.sh"]
|