Closed ckagerer closed 1 week ago
I noticed something else. The “.git” folder is now also copied into the Docker container.
Fixed in commit c8c53d38
@jbarlow83 Thanks for the quick fix.
From my point of view, however, it would be better to exclude the Git folder directly in the .dockerignore (https://github.com/ocrmypdf/OCRmyPDF/blob/116e2692d0fdb18fd74172b209a70758358cc9c0/.dockerignore#L47). This saves space in the container.
ocrmypdf determines the current version from .git (via hatch-vcs) so it needs .git to be present at installation. After the version is written into the virtual environment, .git can be removed.
What were you trying to do?
Error description
Use OCRmyPDF in batch mode to automatically convert all files in a directory. Setup corresponds to that in https://github.com/ocrmypdf/OCRmyPDF/blob/d303b42c8610d3bec0be19b089008ece821cbe9e/misc/docker-compose.example.yml. Since updating to v16.6.0, however, this no longer works, as the path in which “watcher.py” can be found has apparently changed (unintentionally).
Solution / Workaround
Change ...
... to
Where are you installing/running from?
Docker container
OCRmyPDF version
16.6.0
What operating system are you working on?
Linux
Operating system details and version
No response
Simple sanity checks
Relevant log output