1
0
Fork 0

Use pandoc to render reStructuredText

This commit is contained in:
Daniele Tricoli 2021-04-22 03:22:46 +02:00
parent beba950756
commit bc836ec581
2 changed files with 13 additions and 7 deletions

View file

@ -1,8 +1,17 @@
FROM alpine:3.13 as builder
ENV PANDOC_VERSION 2.13
RUN apk --no-cache add tar
WORKDIR /opt
ADD https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz pandoc.tar.gz
RUN tar xvzf pandoc.tar.gz --strip-components 1
FROM gitea/gitea:1.14.1
RUN apk --no-cache add py3-pip
RUN pip3 install docutils Pygments
COPY docutils_template.txt /usr/share/docutils/writers/htmlbody/template.txt
COPY --from=builder /opt/bin/pandoc /usr/local/bin/pandoc
EXPOSE 3000

View file

@ -1,3 +0,0 @@
%(body_pre_docinfo)s
%(docinfo)s
%(body)s