Fix docker image

This commit is contained in:
Nemo 2020-08-13 00:20:04 +05:30
parent 1dcb932bb6
commit 0754aa7cab
1 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# LTS Image
FROM ubuntu:18.04
FROM ubuntu:20.04
LABEL maintainer="github.cosmere-ebooks@captnemo.in"
@ -10,20 +10,18 @@ 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 \
pdftk-java \
ruby \
ruby-dev \
wget \
wkhtmltopdf \
xvfb \
zlib1g-dev \
&& gem install bundler --no-ri --no-rdoc \
&& gem install bundler \
&& bundle install \
&& apt-get remove -y --purge build-essential \
&& apt-get clean