mirror of
https://github.com/captn3m0/cosmere-books.git
synced 2024-09-19 03:57:09 +00:00
Nemo
4411b032ed
other changes: 1. go away wkhtml2pdf 2. switch to wkhtml2pdf 3. go away calibre, mobi isnt' used anywhere now want to get rid of pdftk also, soon
32 lines
583 B
Docker
32 lines
583 B
Docker
# LTS Image
|
|
FROM ubuntu:22.04
|
|
|
|
LABEL maintainer="github.cosmere-ebooks@captnemo.in"
|
|
|
|
ARG DEBIAN_FRONTEND="noninteractive"
|
|
|
|
COPY Gemfile Gemfile.lock /src/
|
|
|
|
WORKDIR /src
|
|
|
|
RUN apt-get update && \
|
|
apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
pandoc \
|
|
pdftk-java \
|
|
ruby \
|
|
ruby-dev \
|
|
wget \
|
|
zlib1g-dev \
|
|
python3-xhtml2pdf \
|
|
&& gem install bundler \
|
|
&& bundle install \
|
|
&& apt-get remove -y --purge build-essential \
|
|
&& apt-get clean
|
|
|
|
COPY . /src
|
|
|
|
ENTRYPOINT ["/src/bootstrap.sh"]
|
|
|
|
VOLUME ["/output"]
|