-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (20 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
26 lines (20 loc) · 1.19 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
FROM debian:sid-slim
WORKDIR /ebook-tools
ENTRYPOINT ["bash"]
RUN apt-get update && \
apt-get --no-install-recommends -y install bash file locales gawk sed grep calibre p7zip-full tesseract-ocr tesseract-ocr-osd tesseract-ocr-eng libxml-xpath-perl poppler-utils catdoc djvulibre-bin curl && \
rm -rf /var/lib/apt/lists/* && \
localedef -i en_US -c -f UTF-8 en_US.UTF-8 && \
curl -s 'https://www.mobileread.com/forums/attachment.php?attachmentid=153947' > goodreads.zip && \
sha256sum 'goodreads.zip' | grep -q 'd4baa44ab16f3ab4f412f40e8f67cea514e21ec1679f46de17d4ec3ebc29c766' && \
calibre-customize --add-plugin goodreads.zip && \
rm goodreads.zip && \
curl -sL '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 && \
useradd -mUs /usr/bin/bash -u 1000 user
USER user
ENV LANG="en_US.UTF-8" PATH="${PATH}:/ebook-tools"
COPY . /ebook-tools