FROM arm64v8/alpine:3.5
ENV REFRESHED_AT 20151105
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk --update add alpine-sdk xz poppler-dev pango-dev m4 libtool perl autoconf automake coreutils python-dev zlib-dev freetype-dev glib-dev cmake libxml2 libxml2-dev &&
cd / &&
git clone https://github.com/tiandeyu/fontforge.git &&
cd fontforge &&
./bootstrap --force &&
./configure --without-iconv &&
make &&
make install &&
cd / &&
git clone https://github.com/tiandeyu/pdf2htmlEX.git &&
cd pdf2htmlEX &&
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig &&
cmake . && make && sudo make install &&
apk del alpine-sdk xz poppler-dev pango-dev m4 libtool perl autoconf automake coreutils python-dev zlib-dev freetype-dev glib-dev cmake &&
apk add libpng python freetype glib libintl libltdl cairo poppler pango &&
rm -rf /var/lib/apt/lists/* &&
rm /var/cache/apk/* &&
rm -rf /fontforge /libspiro /libuninameslist /pdf2htmlEX
VOLUME /pdf WORKDIR /pdf
CMD ["/usr/local/bin/pdf2htmlEX"]
Content type
Image
Digest
Size
53 MB
Last updated
over 7 years ago
docker pull natic/pdf2html