blang / latex-docker

Docker-based latex compilation
MIT License
579 stars 146 forks source link

Change default work directory #18

Open Kobzol opened 6 years ago

Kobzol commented 6 years ago

Hi, when I was building my custom image, I wanted to add some biblatex files to TEXMFHOME. The problem is that in the base image TEXMFHOME is located at /data/tex, which means that when the cmd scripts mount a directory like this: -v "$PWD":/data, it will overwrite the contents of TEXMFHOME.

I suggest changing the workdir to something like /data/src, so that TEXMFHOME is undisturbed.

blang commented 6 years ago

Sounds good, do you think changing the directory would have any unwanted consequences?

wmacevoy commented 5 years ago

There is a significant fork of this at github.com/wmacevoy/latex-docker that uses /home for HOME. I think this fixes this problem. Since it is a significant fork, there are plenty of other consequences....