This commit is contained in:
Ruslan Gustomiasov 2020-06-03 23:12:20 +02:00
parent 04f0a1d6f4
commit 5ddb245c3f
1 changed files with 11 additions and 4 deletions

View File

@ -7,24 +7,31 @@ ARG DEBIAN_FRONTEND="noninteractive"
WORKDIR /src
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
calibre \
pandoc \
ruby \
ruby-dev \
wget \
zlib1g-dev \
file \
gnupg \
&& gem install bundler --no-ri --no-rdoc \
&& gem update --system \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
&& gem update --system
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D6BC243565B2087BC3F897C9277A7293F59E4889
RUN echo "deb http://miktex.org/download/ubuntu bionic universe" > /etc/apt/sources.list.d/miktex.list
RUN apt-get update && apt-get install -y miktex texlive-xetex
COPY . /src/
RUN bundle install
RUN wget -c https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
RUN dpkg -i pandoc-2.9.2.1-1-amd64.deb
ENTRYPOINT ["/src/generate.sh", "docker"]
VOLUME ["/output"]