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 debian:buster-slim
FROM ubuntu:18.04
LABEL maintainer="github.google-sre-ebook@captnemo.in" 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 \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \ build-essential \
calibre \ calibre \
file \
pandoc \ pandoc \
ruby \ ruby \
ruby-dev \ ruby-dev \
lmodern \
texlive-fonts-recommended \
texlive-xetex \
wget \ wget \
zlib1g-dev \ zlib1g-dev \
file \
&& gem install bundler --no-ri --no-rdoc \ && gem install bundler --no-ri --no-rdoc \
&& gem update --system \ && gem update --system \
&& apt-get clean \ && apt-get clean \

View File

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