potato-pzy commited on
Commit
f295d99
·
1 Parent(s): 02422e3

fix: switch to non-root user before running model download script

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -25,12 +25,12 @@ RUN pip install --no-cache-dir -r requirements.txt
25
  # Copy the rest of the application files
26
  COPY --chown=user:user . .
27
 
28
- # Run the model download script during build so the space starts up instantly
29
- RUN python download_model.py
30
-
31
  # Switch to the non-root user
32
  USER user
33
 
 
 
 
34
  # Expose the default Hugging Face Space port
35
  EXPOSE 7860
36
 
 
25
  # Copy the rest of the application files
26
  COPY --chown=user:user . .
27
 
 
 
 
28
  # Switch to the non-root user
29
  USER user
30
 
31
+ # Run the model download script during build so the space starts up instantly
32
+ RUN python download_model.py
33
+
34
  # Expose the default Hugging Face Space port
35
  EXPOSE 7860
36