Skip to content

Commit

Permalink
build: WIP Dockerfile
Browse files Browse the repository at this point in the history
Addresses #1043
  • Loading branch information
George Song committed Mar 9, 2021
1 parent cc2cdcf commit 9bf5bc4
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker/images/Dockerfile.build-pdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:focal

ARG PANDOC_VERSION=2.12
ARG PANDOC_DEB=pandoc-2.12-1-amd64.deb
ARG WKHTML_TO_PDF_VERSION=0.12.6-1
ARG WKHTML_TO_PDF_DEB=wkhtmltox_${WKHTML_TO_PDF_VERSION}.focal_amd64.deb

RUN apt-get update && apt-get install --no-install-recommends -y \
python3 \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

# Install Pandoc
RUN wget --no-check-certificate -P /tmp https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/${PANDOC_DEB} \
&& apt-get install --no-install-recommends -y /tmp/${PANDOC_DEB} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*

# Install wkhtmltopdf
RUN wget --no-check-certificate -P /tmp https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTML_TO_PDF_VERSION}/${WKHTML_TO_PDF_DEB} \
&& apt-get update \
&& apt-get install --no-install-recommends -y /tmp/${WKHTML_TO_PDF_DEB} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /tmp/*

0 comments on commit 9bf5bc4

Please sign in to comment.