Adding updated dockerfile

This commit is contained in:
Matthew Pope 2019-10-06 20:06:52 -07:00
parent 39acaf40d7
commit 594f5a77a2
1 changed files with 42 additions and 0 deletions

42
Dockerfile Normal file
View File

@ -0,0 +1,42 @@
#Dockerfile to build a pdf2htmlEx image
FROM ubuntu
#
#Install git and all dependencies
#
RUN apt update \
&& apt -y install -qq git cmake autotools-dev libopenjp2-7-dev libtiff5-dev libpng-dev libgif-dev libxt-dev autoconf automake libtool bzip2 libxml2-dev libuninameslist-dev libspiro-dev python-dev libpango1.0-dev libcairo-dev chrpath uuid-dev uthash-dev software-properties-common libpoppler-private-dev libpoppler-glib-dev wget
RUN add-apt-repository ppa:fontforge/fontforge \
&& apt update \
&& apt install -y fontforge libfontforge-dev
RUN wget https://poppler.freedesktop.org/poppler-0.81.0.tar.xz \
&& tar xvf poppler-0.81.0.tar.xz \
&& cd poppler-0.81.0 \
&& mkdir build \
&& cd build \
&& cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DTESTDATADIR=$PWD/testfiles \
-DENABLE_UNSTABLE_API_ABI_HEADERS=ON \
.. \
&& make \
&& make install \
&& cd ../..
#
#Clone and install the pdf2htmlEX git repo
#
RUN git clone git://github.com/pdf2htmlEX/pdf2htmlEX.git \
&& cd pdf2htmlEX \
&& cmake . \
&& make \
&& make install
VOLUME /pdf
WORKDIR /pdf
CMD ["pdf2htmlEX"]