Skip to content

Commit

Permalink
feat(docker): add ebook-convert installation
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Sep 5, 2020
1 parent 2069f67 commit d7b63ed
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
FROM node:12-alpine
FROM node:12

LABEL maintainer="azu <azuciao@gmail.com>"
LABEL Description="Docker Container for HonKit"

ARG PACKAGE_VERSION
ENV PACKAGE_VERSION ${PACKAGE_VERSION:-latest}

# Calibre dependencies
RUN apt-get update; \
apt-get install --no-install-recommends --allow-unauthenticated -y \
ca-certificates \
libgl1 \
python3 \
qt5-default \
qt5-image-formats-plugins \
wget \
xdg-utils \
xz-utils \
; \
apt-get clean; \
rm -rf /var/tmp/* /tmp/* /var/lib/apt/lists/*
# Use 3.x for https://github.com/honkit/honkit/issues/117
RUN wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sh /dev/stdin version=3.48.0
RUN npm install -g honkit@${PACKAGE_VERSION}

ENV PATH=/usr/lib/node_modules/.bin:$PATH

0 comments on commit d7b63ed

Please sign in to comment.