TIKA 2262 : Minor changes to dockerfile
@@ -27,12 +27,15 @@ WORKDIR /usr/share/apache-tika/models/dl/image/caption/
RUN \
# To get rid of early EOF error
git config --global http.postBuffer 1048576000 && \
+ echo "We're downloading the checkpoint file for image captioning, the shell might look unresponsive. Please be patient." && \
git clone https://github.com/USCDataScience/img2text.git && \
+ # Join the parts
cat img2text/models/1M_iters_ckpt_parts_a* >1M_iters_ckpt.tar.gz && \
tar -xzvf 1M_iters_ckpt.tar.gz && \
- shopt -s extglob && \
- rm -rf !(1M_iters_ckpt) && \
+ # Delete all files except 1M_iters_ckpt
+ rm -rf {1M_iters_ckpt.tar.gz,img2text}
+RUN \
wget https://raw.githubusercontent.com/ThejanW/tika/master/tika-parsers/src/main/resources/org/apache/tika/parser/captioning/tf/model_info.xml \
-O model_info.xml
