# README
docker-tex-to-pdf
Simple (but not small) Docker which takes a latex file and compiles and converts it to PDF/A
Build docker
-
First build base Docker image
- Run
docker build -f Dockerfile.base -t tex-to-pdfa-base:12-slim .
12-slim
is equivalent to the os-image- This base Docker is primarily intended for better caching, as this Docker image will be quite large (ca. 5 GB and around several minutes building due to download)
- Run
-
Build the app Docker image
- Run
docker build -f Dockerfile.app -t tex-to-pdfa .
- Run
Usage of docker image
-
Prepare source-dir
- The TeX-file is to be expected as
main.tex
- The dir must contain all necessary files
- The TeX-file is to be expected as
-
Run Docker
- Map/mount the source-dir to
/data
- Example:
docker run -v "$(pwd)/test":/data tex-to-pdfa
- Map/mount the source-dir to
-
Enjoy PDF/A file
- Final file is put into source-dir named
main.pdf
- Final file is put into source-dir named
DEBUG Server
docker build -t tex-to-pdfa-debug -f Dockerfile.debugserver .