-
-
Notifications
You must be signed in to change notification settings - Fork 259
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (27 loc) · 952 Bytes
/
Dockerfile
File metadata and controls
30 lines (27 loc) · 952 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
29
30
ARG NODE_VERSION
FROM node:$NODE_VERSION
LABEL maintainer="azu <azuciao@gmail.com>"
LABEL Description="Docker Container for HonKit"
COPY calibre-tarball.3.48.0.txz calibre-tarball.txz
# Calibre dependencies
RUN apt-get update \
&& apt-get install --no-install-recommends --allow-unauthenticated -y \
ca-certificates \
libgl1 \
libxcomposite1 \
python3 \
wget \
xdg-utils \
xz-utils \
&& apt-get clean \
&& rm -rf /var/tmp/* /tmp/* /var/lib/apt/lists/*
RUN mkdir -p /usr/local/calibre \
&& tar xvf ./calibre-tarball.txz -C /usr/local/calibre \
&& /usr/local/calibre/calibre_postinstall
ARG PACKAGE_VERSION
ENV PACKAGE_VERSION ${PACKAGE_VERSION:-latest}
# Use 3.x for https://github.com/honkit/honkit/issues/117
# https://download.calibre-ebook.com/3.48.0/calibre-3.48.0-x86_64.txz
# https://calibre-ebook.com/download_linux
RUN npm install -g honkit@${PACKAGE_VERSION}
ENV PATH=/usr/lib/node_modules/.bin:$PATH