diff --git a/Dockerfile b/Dockerfile index a8d5276..e64d29b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,7 +30,6 @@ RUN apt-get update && \ # Build Leptonica and Tesseract. -# XXX Use a multi stage build for this. RUN curl -sSL -O https://github.com/DanBloomberg/leptonica/releases/download/$LEPTONICA_VERSION/leptonica-$LEPTONICA_VERSION.tar.gz && \ tar xvzf leptonica-$LEPTONICA_VERSION.tar.gz && \ cd leptonica-$LEPTONICA_VERSION && \ diff --git a/build b/build index a425d8a..c3830b4 100755 --- a/build +++ b/build @@ -67,7 +67,7 @@ download_to() { tmpf=`mktemp 'tmp.XXXXX'` wget -O $tmpf "$download_source" mkdir -p "$unpack_to" - # XXX Unpacking relies on tar -a unpacking any tar compression, might not work everywhere? + # Unpacking relies on tar -a unpacking any tar compression tar -C "$unpack_to" -af $tmpf -xv rm -f $tmpf )