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-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-10-26 12:09:50 -05:00
|
|
|
ADD https://extdist.wmflabs.org/dist/extensions/MobileFrontend-REL1_42-8a4ecb7.tar.gz .
|
|
|
|
RUN tar -xzf MobileFrontend-REL1_42-8a4ecb7.tar.gz
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-10-26 12:09:50 -05:00
|
|
|
ADD https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_42-b35addc.tar.gz .
|
|
|
|
RUN tar -xzf PluggableAuth-REL1_42-b35addc.tar.gz
|
2024-10-18 15:41:35 -05:00
|
|
|
|
2024-10-26 12:09:50 -05:00
|
|
|
ADD https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_42-83024de.tar.gz .
|
|
|
|
RUN tar -xzf OpenIDConnect-REL1_42-83024de.tar.gz
|
2024-10-18 15:41:35 -05: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 \
|
|
|
|
libicu-dev \
|
|
|
|
&& docker-php-ext-configure intl \
|
|
|
|
&& docker-php-ext-install -j$(nproc) intl
|
|
|
|
RUN docker-php-ext-configure mysqli \
|
|
|
|
&& docker-php-ext-install -j$(nproc) mysqli
|
|
|
|
RUN apt-get install -y imagemagick
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
COPY config.json /docker-entrypoint.d/config.json
|