mirror of
https://github.com/captn3m0/cosmere-books.git
synced 2024-09-07 22:46:36 +00:00
34 lines
602 B
Docker
34 lines
602 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 \
|
|
calibre \
|
|
pandoc \
|
|
pdftk-java \
|
|
ruby \
|
|
ruby-dev \
|
|
wget \
|
|
wkhtmltopdf \
|
|
xvfb \
|
|
zlib1g-dev \
|
|
&& gem install bundler \
|
|
&& bundle install \
|
|
&& apt-get remove -y --purge build-essential \
|
|
&& apt-get clean
|
|
|
|
COPY . /src
|
|
|
|
ENTRYPOINT ["/src/bootstrap.sh"]
|
|
|
|
VOLUME ["/output"]
|