This repository has been archived on 2024-06-01. You can view files and clone it, but cannot push or open issues or pull requests.
docker-mediawiki/Dockerfile
2022-12-02 21:14:14 +02:00

11 lines
536 B
Docker

FROM mediawiki:latest AS base
ENV DEBIAN_FRONTEND="noninteractive"
COPY ./config.json /tmp/config.json
COPY ./build /tmp
RUN find /tmp/mediawiki_extensions -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C /var/www/html/extensions' \; \
&& find /tmp/mediawiki_skins -name "*.tar.gz" -exec sh -c 'tar -xzf {} -C /var/www/html/skins' \; \
&& find /tmp/mediawiki_override -type f -exec php /tmp/scripts/config_placeholder_replace.php "/tmp/config.json" "{}" \; \
&& mv /tmp/mediawiki_override/* /var/www/html \
&& rm -R /tmp/*