From b15e02eca26214bc78ea72a6ccecd86d9cec8cc9 Mon Sep 17 00:00:00 2001 From: David Mehren <dmehren1@gmail.com> Date: Tue, 18 Jun 2019 16:38:15 +0200 Subject: [PATCH] Make Pandov version configurable --- Dockerfile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33c1838..48f20a0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,15 @@ FROM alpine:edge -# RUN apt-get update -y && apt-get install -y pandoc pandoc-data +ENV PANDOC_VERSION=2.7.3 -RUN apk add ttf-linux-libertine -RUN apk add texlive-full -RUN apk add hugo git ttf-linux-libertine +RUN apk add --no-cache ttf-linux-libertine +RUN apk add --no-cache texlive-full +RUN apk add --no-cache hugo git ttf-linux-libertine -RUN apk add ca-certificates wget \ - && wget -O /tmp/pandoc.tar.gz https://github.com/jgm/pandoc/releases/download/2.7.3/pandoc-2.7.3-linux.tar.gz \ +RUN apk add --no-cache ca-certificates wget \ + && wget -O /tmp/pandoc.tar.gz https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux.tar.gz \ && tar xvzf /tmp/pandoc.tar.gz --strip-components 1 -C /usr/local/ \ && update-ca-certificates \ && apk del wget \ && rm /tmp/pandoc.tar.gz - -# RUN wget -q https://github.com/gohugoio/hugo/releases/download/v0.55.6/hugo_0.55.6_Linux-64bit.deb -O /tmp/hugo.deb && dpkg -i /tmp/hugo.deb - -- GitLab