Skip to content

Commit

Permalink
fix tika permission issues
Browse files Browse the repository at this point in the history
  • Loading branch information
anakin87 committed Jan 6, 2024
1 parent 9ca8b26 commit 29d1f4b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ FROM deepset/haystack:base-cpu-v1.23.0
COPY requirements.txt .
RUN pip install -r requirements.txt

# 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

# Switch to the "user" user
USER user

# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH

# Set the working directory to the user's home directory
WORKDIR $HOME/app
# try to fix permission issues with Tika
RUN chmod 777 /tmp/tika*


# copy only the application files in /app
# Streamlit does not allow running an app from the root directory
Expand Down

0 comments on commit 29d1f4b

Please sign in to comment.