-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
25 lines (19 loc) · 843 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:xenial
MAINTAINER Matthias Nüßler <[email protected]>
ENV PDFTK_VERSION 2.02
# The directory containing the PDF files to be processed is expected to be mounted here
# as a docker volume when running the container.
RUN mkdir /work
WORKDIR /work
VOLUME ["/work"]
RUN apt-get update && \
apt-get install -y --no-install-recommends unzip build-essential gcj-jdk && \
apt-get clean
ADD https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-${PDFTK_VERSION}-src.zip /tmp/
RUN unzip /tmp/pdftk-${PDFTK_VERSION}-src.zip -d /tmp && \
sed -i 's/VERSUFF=-4.6/VERSUFF=-5/g' /tmp/pdftk-${PDFTK_VERSION}-dist/pdftk/Makefile.Debian && \
cd /tmp/pdftk-${PDFTK_VERSION}-dist/pdftk && \
make -f Makefile.Debian && \
make -f Makefile.Debian install && \
rm -Rf /tmp/pdftk-*
ENTRYPOINT ["/usr/local/bin/pdftk"]