Pull MediaWiki extensions from git
This commit is contained in:
parent
e849419273
commit
321e15b180
1 changed files with 12 additions and 10 deletions
|
@ -2,17 +2,19 @@ FROM alpine AS builder
|
||||||
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
|
||||||
|
RUN apk update && apk add git
|
||||||
|
|
||||||
ADD https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz .
|
ADD https://releases.wikimedia.org/mediawiki/1.42/mediawiki-1.42.3.tar.gz .
|
||||||
RUN tar -xzf mediawiki-1.42.3.tar.gz
|
RUN tar -xzf mediawiki-1.42.3.tar.gz
|
||||||
|
|
||||||
ADD https://extdist.wmflabs.org/dist/extensions/MobileFrontend-REL1_42-8a4ecb7.tar.gz .
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/MobileFrontend; \
|
||||||
RUN tar -xzf MobileFrontend-REL1_42-8a4ecb7.tar.gz
|
rm -rf MobileFrontend/.git
|
||||||
|
|
||||||
ADD https://extdist.wmflabs.org/dist/extensions/PluggableAuth-REL1_42-b35addc.tar.gz .
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/PluggableAuth; \
|
||||||
RUN tar -xzf PluggableAuth-REL1_42-b35addc.tar.gz
|
rm -rf PluggableAuth/.git
|
||||||
|
|
||||||
ADD https://extdist.wmflabs.org/dist/extensions/OpenIDConnect-REL1_42-83024de.tar.gz .
|
RUN git clone -b REL1_42 https://gerrit.wikimedia.org/r/mediawiki/extensions/OpenIDConnect; \
|
||||||
RUN tar -xzf OpenIDConnect-REL1_42-83024de.tar.gz
|
rm -rf OpenIDConnect/.git
|
||||||
|
|
||||||
FROM docker.io/library/unit:php8.2
|
FROM docker.io/library/unit:php8.2
|
||||||
|
|
||||||
|
@ -21,10 +23,10 @@ WORKDIR /var/www/html
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
libicu-dev \
|
libicu-dev \
|
||||||
&& docker-php-ext-configure intl \
|
&& docker-php-ext-configure intl \
|
||||||
&& docker-php-ext-install -j$(nproc) intl
|
&& docker-php-ext-install -j$(nproc) intl \
|
||||||
RUN docker-php-ext-configure mysqli \
|
&& docker-php-ext-install -j$(nproc) mysqli \
|
||||||
&& docker-php-ext-install -j$(nproc) mysqli
|
&& apt-get install -y imagemagick \
|
||||||
RUN apt-get install -y imagemagick
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY --from=builder --chown=unit:unit /usr/src/mediawiki-1.42.3 w/
|
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/MobileFrontend w/extensions/MobileFrontend
|
||||||
|
|
Loading…
Reference in a new issue