2024-10-18 15:41:35 -05:00
|
|
|
FROM alpine AS builder
|
|
|
|
|
2024-10-26 12:09:50 -05:00
|
|
|
WORKDIR /usr/src
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-08 19:07:18 -06:00
|
|
|
RUN apk update && apk add git
|
|
|
|
|
2024-10-26 12:09:50 -05:00
|
|
|
ADD https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz .
|
|
|
|
RUN tar -xzf mediawiki-1.42.3.tar.gz
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-08 19:07:18 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend; \
|
|
|
|
rm -rf MobileFrontend/.git
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-08 19:07:18 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth; \
|
|
|
|
rm -rf PluggableAuth/.git
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-08 19:07:18 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenIDConnect; \
|
|
|
|
rm -rf OpenIDConnect/.git
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-09 17:41:24 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/Widgets; \
|
2024-11-09 17:43:24 -06:00
|
|
|
rm -rf Widgets/.git
|
2024-11-09 17:41:24 -06:00
|
|
|
|
2024-10-26 12:09:50 -05:00
|
|
|
FROM docker.io/library/unit:php8.2
|
|
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y \
|
2024-11-09 14:30:22 -06:00
|
|
|
libicu-dev librsvg2-bin \
|
2024-10-26 12:09:50 -05:00
|
|
|
&& docker-php-ext-configure intl \
|
2024-11-08 19:07:18 -06:00
|
|
|
&& docker-php-ext-install -j$(nproc) intl \
|
|
|
|
&& docker-php-ext-install -j$(nproc) mysqli \
|
|
|
|
&& apt-get install -y imagemagick \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2024-10-26 12:09:50 -05:00
|
|
|
|
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/mediawiki-1.42.3 w/
|
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/MobileFrontend w/extensions/MobileFrontend
|
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/PluggableAuth w/extensions/PluggableAuth
|
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/OpenIDConnect w/extensions/OpenIDConnect
|
2024-11-09 17:41:24 -06:00
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/Widgets w/extensions/Widgets
|
2024-10-26 12:09:50 -05:00
|
|
|
|
|
|
|
COPY config.json /docker-entrypoint.d/config.json
|