1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
539 B

FROM alpine:3.15 as builder
ENV PANDOC_VERSION 2.17.1.1
ENV PANDOC_TARBALL_SHA256SUM bce0609dfe196784fe0300fb6847a2a246391a5b98e0490e5f7eadb78afb0d74
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 sha256sum pandoc.tar.gz | grep -q ${PANDOC_TARBALL_SHA256SUM} && \
tar xvzf pandoc.tar.gz --strip-components 1
FROM gitea/gitea:1.16.7
COPY --from=builder /opt/bin/pandoc /usr/local/bin/pandoc
EXPOSE 3000