mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-08 04:56:45 +00:00
Fix tesseract installation in Dockerfile (#1405)
* Fix Dockerfile * Update Dockerfile-GPU
This commit is contained in:
parent
38128c6734
commit
bb9ec90d3c
@ -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
|
||||
|
||||
@ -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"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user