forked from rappdw/ebook-convert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
77 lines (67 loc) · 1.83 KB
/
Dockerfile
File metadata and controls
77 lines (67 loc) · 1.83 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
FROM ubuntu:20.04
# creates a docker image that will convert an ebook from one format to another (guessed by file extensions of input)
# see: https://manual.calibre-ebook.com/generated/en/ebook-convert.html
RUN mkdir /target
VOLUME ["/target"]
WORKDIR /target
# Avoid interactive prompts from apt-get and set a default timezone
ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/London
RUN set -e; \
apt-get update; \
apt-get install --no-install-recommends --allow-unauthenticated -y \
ca-certificates \
libgl1 \
libopengl0 \
libxcb-cursor0 \
libxcomposite1 \
python3 \
qt5-default \
qt5-image-formats-plugins \
wget \
xdg-utils \
xz-utils \
libnss3 \
libfontconfig1 \
libfreetype6 \
# libxcbi \
libxdamage1 \
libxrandr2 \
libx11-xcb1 \
libx11-6 \
libxcb1 \
libxcomposite1 \
libxext6 \
libxi6 \
libxcb1 \
libxml2 \
libxtst6 \
libxslt1.1 \
libqt5core5a \
libqt5gui5 \
libqt5widgets5 \
libqt5network5 \
libxcb-xinerama0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxfixes3 \
libxrender1 \
libdbus-1-3 \
libfreetype6 \
libxkbfile1 \
calibre \
; \
apt-get clean; \
rm -rf /var/tmp/* /tmp/* /var/lib/apt/lists/*
RUN apt-get update && apt-get install -y locales \
&& rm -rf /var/lib/apt/lists/* \
&& locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
ENV QTWEBENGINE_DISABLE_SANDBOX 1
RUN set -e; \
wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin
ENTRYPOINT ["ebook-convert"]
#ENTRYPOINT ["sh", "-c", "ebook-convert --no-sandbox $@", "--"]