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 .
|
2024-11-09 19:59:31 -06:00
|
|
|
RUN tar -xzf mediawiki-1.42.3.tar.gz && mv mediawiki-1.42.3 mediawiki
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-09 19:59:31 -06:00
|
|
|
WORKDIR /usr/src/mediawiki
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-09 19:59:31 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend extensions/MobileFrontend; \
|
|
|
|
rm -rf extensions/MobileFrontend/.git
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-09 19:59:31 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth extensions/PluggableAuth; \
|
|
|
|
rm -rf extensions/PluggableAuth/.git
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-11-09 19:59:31 -06:00
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenIDConnect extensions/OpenIDConnect; \
|
|
|
|
rm -rf extensions/OpenIDConnect/.git
|
|
|
|
|
|
|
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/Widgets extensions/Widgets; \
|
|
|
|
rm -rf extensions/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 19:59:31 -06:00
|
|
|
libicu-dev librsvg2-bin imagemagick git unzip \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
RUN 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 \
|
2024-11-09 19:59:31 -06:00
|
|
|
&& docker-php-ext-install -j$(nproc) calendar
|
|
|
|
|
|
|
|
COPY --from=builder --chown=unit:unit /usr/src/mediawiki w/
|
|
|
|
COPY --from=docker.io/composer/composer /usr/bin/composer /usr/bin/composer
|
|
|
|
COPY composer.local.json w/composer.local.json
|
2024-10-26 12:09:50 -05:00
|
|
|
|
2024-11-09 19:59:31 -06:00
|
|
|
RUN cd /var/www/html/w && composer update --no-dev
|
2024-10-26 12:09:50 -05:00
|
|
|
|
|
|
|
COPY config.json /docker-entrypoint.d/config.json
|