anakin87 commited on
Commit
803bf86
1 Parent(s): 29d1f4b

retry fixing tika error

Browse files
Files changed (1) hide show
  1. 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
- # try to fix permission issues with Tika
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