1
0
Fork 0

Check sha256sum of pandoc tarball

This commit is contained in:
Daniele Tricoli 2021-04-24 03:05:35 +02:00
parent bc836ec581
commit 4f49eeaaa3
1 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,7 @@
FROM alpine:3.13 as builder
ENV PANDOC_VERSION 2.13
ENV PANDOC_TARBALL_SHA256SUM 7404aa88a6eb9fbb99d9803b80170a3a546f51959230cc529c66a2ce6b950d4c
RUN apk --no-cache add tar
@ -8,7 +9,8 @@ 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
RUN sha256sum pandoc.tar.gz | grep -q ${PANDOC_TARBALL_SHA256SUM} && \
tar xvzf pandoc.tar.gz --strip-components 1
FROM gitea/gitea:1.14.1