Skip to content

Commit

Permalink
retry fixing tika error
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jan 6, 2024
1 parent 29d1f4b commit 803bf86
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ FROM deepset/haystack:base-cpu-v1.23.0
COPY requirements.txt .
RUN pip install -r requirements.txt

# try to fix permission issues with Tika
RUN mkdir /tmp/tika
RUN chmod 777 /tmp/tika*

# from https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
Expand All @@ -12,8 +16,7 @@ USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH

# try to fix permission issues with Tika
RUN chmod 777 /tmp/tika*



# copy only the application files in /app
Expand Down

0 comments on commit 803bf86

Please sign in to comment.