forked from na--/ebook-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
29 lines (22 loc) · 1.27 KB
/
Dockerfile
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
FROM debian:sid-slim
ENTRYPOINT ["bash"]
RUN apt-get update && \
apt-get --no-install-recommends -y install file less bash coreutils gawk sed grep calibre p7zip-full tesseract-ocr tesseract-ocr-osd tesseract-ocr-eng python-lxml poppler-utils catdoc djvulibre-bin locales curl ca-certificates && \
rm -rf /var/lib/apt/lists/* && \
localedef -i en_US -c -f UTF-8 en_US.UTF-8 && \
useradd -mUs /usr/bin/bash -u 1000 user && \
mkdir /ebook-tools && \
chown user:user /ebook-tools
WORKDIR /ebook-tools
ENV LANG="en_US.UTF-8" PATH="${PATH}:/ebook-tools"
USER user
RUN curl 'https://www.mobileread.com/forums/attachment.php?attachmentid=168584' > goodreads.zip && \
sha256sum 'goodreads.zip' | grep -q '04cc13ed59a698532b3565eb2dcda4a388744d5af9c7065a13c2a323a9fa1f9a' && \
calibre-customize --add-plugin goodreads.zip && \
rm goodreads.zip && \
curl -L 'https://github.com/na--/calibre-worldcat-xisbn-metadata-plugin/archive/0.1.zip' > worldcat.zip && \
sha256sum worldcat.zip | grep -q 'bedddcd736382baf95fed2c38698ded15b0d8fbd8085bacd1a4b4766e972dd4d' && \
7z x worldcat.zip && \
calibre-customize --build-plugin calibre-worldcat-xisbn-metadata-plugin-0.1/ && \
rm -rf worldcat.zip calibre-worldcat-xisbn-metadata-plugin-0.1
COPY . /ebook-tools