Skip to content

Commit

Permalink
fix: "no such group" error in Dockerfile, added docx2txt and cryptogr…
Browse files Browse the repository at this point in the history
…aphy deps (#1841)

* Fixed "no such group" error in Dockerfile, added docx2txt to poetry so docx parsing works out of the box for docker containers

* added cryptography dependency for pdf parsing
  • Loading branch information
dividebysandwich authored Apr 19, 2024
1 parent 49ef729 commit 947e737
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 48 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.local
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ ENV PORT=8080
EXPOSE 8080

# Prepare a non-root user
RUN adduser --system worker
RUN adduser --group worker
RUN adduser --system --ingroup worker worker
WORKDIR /home/worker/app

RUN mkdir local_data; chown worker local_data
Expand Down
91 changes: 44 additions & 47 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ injector = "^0.21.0"
pyyaml = "^6.0.1"
watchdog = "^4.0.0"
transformers = "^4.38.2"
docx2txt = "^0.8"
cryptography = "^3.1"
# LlamaIndex core libs
llama-index-core = "^0.10.14"
llama-index-readers-file = "^0.1.6"
Expand Down

0 comments on commit 947e737

Please sign in to comment.