This is a Dockerfile for building a Docker image which can be used to compile LaTeX documents with different external packages without managing multiple installations on the system. If caching is enabled, it has negligible overhead over running it bare-metal.
- Build the Docker image:
docker build -t dockertex:latest . - Modify
run_dockertex.shto suit your needs (comments provided); IMPORTANT: Specify absolute paths, or else 3. won't work properly! - Add
run_dockertex.shto your path, e.g. withln -s "$(realpath run_dockertex.sh)" '/usr/local/bin/dockertex'