Skip to content

Nakilon/docker-pdftk-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-pdftk-java

Docker alpine image with pdftk-java build and openjdk8-jre installed.

Building

With default versions:

docker build -t my-pdftk-java . < Dockerfile

With custom versions of JDK, PDFTK and Alpine image:

docker build --build-arg FROM=ruby:2.4-alpine --build-arg OPENJDK_RELEASE=8 --build-arg PDFTK_RELEASE=v3.0.6 -t my-pdftk-java . < Dockerfile

Usage

A shell script called pdftk has been created to defer calls off to the built binary /app/pdftk.jar

Example Usage:

docker run --rm clevyr/pdftk-java pdftk --help

If you need the executable in another Docker container, make sure you have installed openjdk8-jre (Or your distro-equivalent), then run this on build:

COPY --from=clevyr/pdftk-java /app/ /usr/local/bin/

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%