-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (36 loc) · 1.82 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM mediawiki:1.39 as builder
WORKDIR /tmp
RUN apt update && apt upgrade -y
RUN apt install -y unzip
RUN curl -sS https://getcomposer.org/installer | php
RUN mv composer.phar /usr/local/bin/composer
WORKDIR /var/www/html
ENV MEDIAWIKI_BRANCH REL1_39
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth extensions/PluggableAuth
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/mediawiki/extensions/NativeSvgHandler extensions/NativeSvgHandler
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror extensions/CodeMirror
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/mediawiki/extensions/TemplateStyles extensions/TemplateStyles
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://gerrit.wikimedia.org/r/mediawiki/extensions/UserMerge extensions/UserMerge
RUN git clone --depth 1 -b $MEDIAWIKI_BRANCH \
https://github.com/FyraLabs/mediawiki-extensions-OpenIDConnect extensions/OpenIDConnect
RUN git clone --depth 1 -b 1.14 \
https://github.com/kulttuuri/DiscordNotifications extensions/DiscordNotifications
RUN git clone --depth 1 -b v2.9.1 \
https://github.com/StarCitizenTools/mediawiki-skins-Citizen skins/Citizen
COPY composer.local.json .
COPY htaccess .htaccess
RUN composer update
# NOTE(lexisother): Trust me, this is absolutely necessary, otherwise the patch
# applied to the composer.json further above will NOT take effect.
# RUN cd extensions/OpenIDConnect && composer update && cd ../../
FROM mediawiki:1.39
RUN apt update && apt upgrade -y
# Lua setup, Scribunto has no binaries for arm64
RUN apt install -y lua5.1 vim
RUN mkdir /var/www/logs && chmod -R o+w /var/www/logs
COPY --from=builder /var/www/html /var/www/html