(the Dockerfile)

--
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Jonathan Dowland
⢿⡄⠘⠷⠚⠋⠀ https://jmtd.net
⠈⠳⣄⠀⠀⠀⠀
FROM debian:13-slim

RUN apt-get update
RUN apt-get install -y python3
RUN apt-get clean

RUN mkdir /app && chown nobody:nogroup /app
WORKDIR /app

USER nobody
COPY moinconvert /app
COPY moinformat /app/moinformat

# expect volume mount at /app/docs
RUN mkdir docs docs/wiki docs/html

ENV PYTHONPATH /app
CMD ./moinconvert --input-dir docs/wiki \
              --output-dir docs/html \
              --root MoinLight \
              --document-index index.html \
              --theme mercurial \
              --macros --all

Reply via email to