From f0489693569a8ac5ac201034190f71d21c74c1b3 Mon Sep 17 00:00:00 2001 From: Clayton Yochum Date: Thu, 2 Apr 2020 01:15:32 -0400 Subject: Update Dockerfile to use Debian Buster base images. This allows Cairo to be updated, removing a warning from Weasyprint. --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index 86743a2..e6fc152 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:stretch AS rmapi +FROM golang:buster AS rmapi ENV GOPATH /go ENV PATH ${GOPATH}/bin:/usr/local/go/bin:$PATH @@ -7,18 +7,21 @@ ENV RMAPIREPO github.com/juruen/rmapi RUN go get -u ${RMAPIREPO} -FROM python:3.7-slim-stretch +FROM python:3.7-slim-buster # rmapi COPY --from=rmapi /go/bin/rmapi /usr/bin/rmapi -# imagemagick, pdftk, ghostscript, pdfcrop +# needed to install openjdk-11-jre-headless +RUN mkdir -p /usr/share/man/man1 + +# imagemagick, pdftk, ghostscript, pdfcrop, weasyprint RUN apt-get update \ && apt-get install --no-install-recommends -y \ libmagickwand-dev \ pdftk \ ghostscript \ - poppler-utils + poppler-utils RUN pip install --no-cache-dir paper2remarkable -- cgit v1.2.3