From 1ea80be8a06bd560b99b59b491324ac33415f96c Mon Sep 17 00:00:00 2001 From: Merith Date: Tue, 15 Jul 2025 12:35:24 -0700 Subject: [PATCH] stash --- initial-lore.md => .reference/initial-lore.md | 0 .tools/mw2md/Dockerfile | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+) rename initial-lore.md => .reference/initial-lore.md (100%) create mode 100644 .tools/mw2md/Dockerfile diff --git a/initial-lore.md b/.reference/initial-lore.md similarity index 100% rename from initial-lore.md rename to .reference/initial-lore.md diff --git a/.tools/mw2md/Dockerfile b/.tools/mw2md/Dockerfile new file mode 100644 index 0000000..fb36186 --- /dev/null +++ b/.tools/mw2md/Dockerfile @@ -0,0 +1,26 @@ +## CREDIT https://github.com/realrubberduckdev/mediawiki-to-markdown/ +FROM pandoc/latex +WORKDIR /src +COPY composer.* ./ + +# Install composer, refer: https://github.com/geshan/docker-php-composer-alpine/blob/master/Dockerfile +RUN apk --update add wget \ + curl \ + git \ + php7 \ + php7-curl \ + php7-openssl \ + php7-iconv \ + php7-json \ + php7-mbstring \ + php7-phar \ + php7-xml \ + php7-simplexml \ + php7-dom --repository http://nl.alpinelinux.org/alpine/edge/testing/ && rm /var/cache/apk/* + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer +# end of install composer + +RUN composer install +COPY . . +CMD ["sh"] \ No newline at end of file