Fix tesseract installation in Dockerfile (#1405)

* Fix Dockerfile

* Update Dockerfile-GPU
This commit is contained in:
Malte Pietsch 2021-09-02 11:09:30 +02:00 committed by GitHub
parent 38128c6734
commit bb9ec90d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,7 @@ RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.03.
RUN apt-get install libpoppler-cpp-dev pkg-config -y --fix-missing
# Install Tesseract
RUN apt-get install tesseract-ocr libtesseract-dev poppler-utils
RUN apt-get install tesseract-ocr libtesseract-dev poppler-utils -y
# copy code
COPY haystack /home/user/haystack

View File

@ -17,6 +17,7 @@ RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.03.
tar -xvf xpdf-tools-linux-4.03.tar.gz && cp xpdf-tools-linux-4.03/bin64/pdftotext /usr/local/bin
RUN apt-get install libpoppler-cpp-dev pkg-config -y --fix-missing
RUN apt-get install tesseract-ocr libtesseract-dev poppler-utils -y
# copy code
COPY haystack /home/user/haystack
@ -48,4 +49,4 @@ COPY rest_api /home/user/rest_api
EXPOSE 8000
# cmd for running the API (note: "--preload" is not working with cuda)
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "1", "--timeout", "180"]
CMD ["gunicorn", "rest_api.application:app", "-b", "0.0.0.0", "-k", "uvicorn.workers.UvicornWorker", "--workers", "1", "--timeout", "180"]