Fix ocrmypdf containers not being removed after a run

before they would kind of lying around and pile up after a couple of processed items
This commit is contained in:
totti4ever 2020-10-31 19:35:35 +01:00 committed by GitHub
parent 349f4765c3
commit 5dbd35060a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,4 +3,4 @@
if [ ! "$1" == "--version" ]; then
echo "Using docker image for ocrmypdf (Version: $OCRMYPDF_VERSION)"
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 $@