mirror of
https://github.com/deepset-ai/haystack.git
synced 2025-11-01 18:29:32 +00:00
🐳 add PDF converter dependencies to Docker (#1107)
This commit is contained in:
parent
6ca6ac0632
commit
6326cf5710
@ -6,7 +6,9 @@ RUN apt-get update && apt-get install -y curl git pkg-config cmake
|
||||
|
||||
# Install PDF converter
|
||||
RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.03.tar.gz && \
|
||||
tar -xvf xpdf-tools-linux-4.03.tar.gz && cp xpdf-tools-linux-4.03/bin64/pdftotext /usr/local/bin
|
||||
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
|
||||
|
||||
# copy code
|
||||
COPY haystack /home/user/haystack
|
||||
|
||||
@ -16,6 +16,8 @@ RUN update-alternatives --set python3 /usr/bin/python3.7
|
||||
RUN wget --no-check-certificate https://dl.xpdfreader.com/xpdf-tools-linux-4.03.tar.gz && \
|
||||
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
|
||||
|
||||
# copy code
|
||||
COPY haystack /home/user/haystack
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user