Switch to debian, fixes #31, closes #32

This commit is contained in:
Nemo 2020-06-07 00:35:54 +05:30
parent 04f0a1d6f4
commit 1ea7af6995
2 changed files with 7 additions and 5 deletions

View File

@ -1,5 +1,4 @@
# LTS Image
FROM ubuntu:18.04
FROM debian:buster-slim
LABEL maintainer="github.google-sre-ebook@captnemo.in"
@ -10,12 +9,15 @@ WORKDIR /src
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
calibre \
file \
pandoc \
ruby \
ruby-dev \
lmodern \
texlive-fonts-recommended \
texlive-xetex \
wget \
zlib1g-dev \
file \
&& gem install bundler --no-ri --no-rdoc \
&& gem update --system \
&& apt-get clean \

View File

@ -75,10 +75,10 @@ pandoc --from=html --to=epub \
complete.html
# generate PDF from HTML
pandoc --from=html --to=pdf \
pandoc --from=html \
--pdf-engine=xelatex \
--output=../../../../../${BOOK_FILE}.pdf \
--metadata title="$BOOK_NAME" \
--pdf-engine=xelatex \
--dpi=300 \
-V book \
--top-level-division=chapter \