Mimi commited on
Commit
edf07d4
·
1 Parent(s): bdc9847
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -20,7 +20,9 @@ RUN pip install --no-cache-dir --upgrade pip
20
  COPY --chown=user . $HOME/app
21
 
22
  # Copy requirements and install dependencies
23
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
 
 
24
 
25
  # Hugging Face Spaces does NOT support --mount=type=secret.
26
  # Instead, access HF_TOKEN via environment variables at runtime.
 
20
  COPY --chown=user . $HOME/app
21
 
22
  # Copy requirements and install dependencies
23
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt \
24
+ chown -R user:user $HOME \
25
+ && chmod -R u+rwX,go=rX $HOME
26
 
27
  # Hugging Face Spaces does NOT support --mount=type=secret.
28
  # Instead, access HF_TOKEN via environment variables at runtime.