YsnHdn commited on
Commit
33e1d74
1 Parent(s): eaf135f

Refactor : granting server the right to access to pdfs

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -14,6 +14,9 @@ ENV HF_HOME /code/.cache/huggingface
14
  # Create cache directory with appropriate permissions
15
  RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
16
 
 
 
 
17
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
18
 
19
  COPY . .
 
14
  # Create cache directory with appropriate permissions
15
  RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
16
 
17
+ # Grant write permissions to the directory where your application saves files
18
+ RUN mkdir -p /code/static/uploads && chmod -R 777 /code/static/uploads
19
+
20
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
21
 
22
  COPY . .