parent
04f0a1d6f4
commit
1ea7af6995
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue