-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile-calibre
More file actions
28 lines (18 loc) · 891 Bytes
/
Dockerfile-calibre
File metadata and controls
28 lines (18 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM ubuntu:focal
# Tool to convert a PDF file (myfile.pdf) to a fixed layout or reflowable text ePub file (myfile.epub).
# By Eric Dodémont (eric.dodemont@skynet.be)
# Belgium, July-August 2020
MAINTAINER Eric Dodemont <eric.dodemont@skynet.be>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt -q update && apt -q -y upgrade
# Fixed layout ePub: install pdf2htmlEX and some other packages
RUN echo "deb [trusted=yes] https://repository.dodeeric.be/apt/ /" > /etc/apt/sources.list.d/dodeeric.list
RUN apt -q -y install ca-certificates
RUN apt -q update && apt -q -y install pdf2htmlex poppler-utils bc zip file
# Reflowable text ePub: install ebook-convert from Calibre
RUN apt -q -y install wget python xdg-utils xz-utils libnss3
RUN wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin
# Bash script
COPY ./pdf2epubEX /bin
RUN mkdir /temp
WORKDIR /temp