Spaces:
Running
Running
fix tika permission issues
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
|
@@ -3,18 +3,18 @@ FROM deepset/haystack:base-cpu-v1.23.0
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install -r requirements.txt
|
| 5 |
|
|
|
|
| 6 |
# Set up a new user named "user" with user ID 1000
|
| 7 |
RUN useradd -m -u 1000 user
|
| 8 |
-
|
| 9 |
# Switch to the "user" user
|
| 10 |
USER user
|
| 11 |
-
|
| 12 |
# Set home to the user's home directory
|
| 13 |
ENV HOME=/home/user \
|
| 14 |
PATH=/home/user/.local/bin:$PATH
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
|
|
|
|
| 18 |
|
| 19 |
# copy only the application files in /app
|
| 20 |
# Streamlit does not allow running an app from the root directory
|
|
|
|
| 3 |
COPY requirements.txt .
|
| 4 |
RUN pip install -r requirements.txt
|
| 5 |
|
| 6 |
+
# from https://huggingface.co/docs/hub/spaces-sdks-docker#permissions
|
| 7 |
# Set up a new user named "user" with user ID 1000
|
| 8 |
RUN useradd -m -u 1000 user
|
|
|
|
| 9 |
# Switch to the "user" user
|
| 10 |
USER user
|
|
|
|
| 11 |
# Set home to the user's home directory
|
| 12 |
ENV HOME=/home/user \
|
| 13 |
PATH=/home/user/.local/bin:$PATH
|
| 14 |
|
| 15 |
+
# try to fix permission issues with Tika
|
| 16 |
+
RUN chmod 777 /tmp/tika*
|
| 17 |
+
|
| 18 |
|
| 19 |
# copy only the application files in /app
|
| 20 |
# Streamlit does not allow running an app from the root directory
|