Merge pull request #416 from totti4ever/pr-fix-ocrmypdf

Fix ocrmypdf containers not being removed after a run
This commit is contained in:
eikek 2020-10-31 21:08:18 +01:00 committed by GitHub
commit 5da6cd4291
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,4 +3,4 @@
if [ ! "$1" == "--version" ]; then if [ ! "$1" == "--version" ]; then
echo "Using docker image for ocrmypdf (Version: $OCRMYPDF_VERSION)" echo "Using docker image for ocrmypdf (Version: $OCRMYPDF_VERSION)"
fi fi
docker run -v '/tmp/docspell-convert:/tmp/docspell-convert' -e "TZ=$TZ" jbarlow83/ocrmypdf:$OCRMYPDF_VERSION $@ docker run --rm -v '/tmp/docspell-convert:/tmp/docspell-convert' -e "TZ=$TZ" jbarlow83/ocrmypdf:$OCRMYPDF_VERSION $@