mirror of
https://github.com/captn3m0/cosmere-books.git
synced 2024-09-27 19:23:03 +00:00
36 lines
720 B
Docker
36 lines
720 B
Docker
|
# LTS Image
|
||
|
FROM ubuntu:18.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 install -y software-properties-common && \
|
||
|
add-apt-repository -y ppa:malteworld/ppa && \
|
||
|
apt-get update && apt-get install -y --no-install-recommends \
|
||
|
build-essential \
|
||
|
calibre \
|
||
|
pandoc \
|
||
|
pdftk \
|
||
|
ruby \
|
||
|
ruby-dev \
|
||
|
wget \
|
||
|
wkhtmltopdf \
|
||
|
xvfb \
|
||
|
zlib1g-dev \
|
||
|
&& gem install bundler --no-ri --no-rdoc \
|
||
|
&& bundle install \
|
||
|
&& apt-get remove -y --purge build-essential \
|
||
|
&& apt-get clean
|
||
|
|
||
|
COPY . /src
|
||
|
|
||
|
ENTRYPOINT ["/src/bootstrap.sh"]
|
||
|
|
||
|
VOLUME ["/output"]
|