Switch to docker based tei2korapxml

Change-Id: I6055526789051f65d77e095f05dca428efb33217
diff --git a/Makefile b/Makefile
index 8ce1cab..6637b46 100644
--- a/Makefile
+++ b/Makefile
@@ -79,12 +79,9 @@
 	$(SAXON) -xsl:xslt/epub2i5.xsl $(shell find $< -name "*.opf")  $(shell if cat `find $< -name originalPath.xml` | grep -iq buchpreis; then echo buchpreis=1; fi)> $@ || \
 	(sleep 5 && $(SAXON) -xsl:xslt/epub2i5.xsl $(shell find $< -name "*.opf") $(shell if cat `find $< -name originalPath.xml` | grep -iq buchpreis; then echo buchpreis=1; fi) debug=1 > $@) || (echo "WARN: ignoring invalid $@" && > $@)
 
-
 %.zip: %.i5.xml
-	tei2korapxml -l warn -s -tk - < $< > $@  || ($(SLACK) "$@ failed" && false)	
-	printf "%s\t%s\n" "$(grep -c '<idsText ' $<)" "$(unzip -l $@ | grep data.xml | wc -l)"
-	$(SLACK) "$@ created"
-
+	docker run --rm -i korap/tei2korapxml:latest -l warn -s -tk - < $< > $@ 2> >(tee $(@:.zip=.log) >&2)
+	printf "%s\t%s\n" "$$(grep -c '<idsText ' $<)" "$$(unzip -l $@ | grep data.xml | wc -l)"
 
 %.tree_tagger.zip: %.zip
 	$(KORAPXMLTOOL) -A "docker run -v ./models/:/local/models--rm -i korap/conllu-treetagger -l german -p" -t zip -f -D $(TARGET_DIR) $<