Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM python:3.10-slim-bullseye

RUN apt-get update \
&& apt-get install -y software-properties-common \
&& add-apt-repository -y ppa:alex-p/tesseract-ocr5 \
&& apt-get install -y tesseract-ocr \
&& apt-get install -y poppler-utils \
&& pip3 --no-cache-dir install --upgrade pip \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /project
COPY ["README.md", "pyproject.toml", "setup.py", "./"]
COPY ["src/", "./src"]

RUN pip install .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should either pip install .[all] or a select list of extensions, e.g. [donut] (I'm currently working on adding [web] which will contain extras for web scraping).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also manually install transformers (the same version that's suggested in the README)

CMD ["python3"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make the default entrypoint python3 -m docquery.cmd (or just docquery)?