Use pandoc to render reStructuredText
This commit is contained in:
parent
beba950756
commit
bc836ec581
17
Dockerfile
17
Dockerfile
|
@ -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
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
%(body_pre_docinfo)s
|
||||
%(docinfo)s
|
||||
%(body)s
|
Loading…
Reference in a new issue