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