KunalThakare279 commited on
Commit
7f8bba6
·
verified ·
1 Parent(s): 7204c64

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -15,15 +15,15 @@ RUN mkdir -p /cache/huggingface && chown -R appuser:appgroup /cache/huggingface
15
  # Set environment variable to point to the new cache directory
16
  ENV HF_HOME=/cache/huggingface
17
 
 
 
 
 
18
  USER root
19
 
20
  # Install Python dependencies
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
- # Set the ownership of the entire /app directory
24
- RUN chown -R appuser:appgroup /app
25
-
26
- # Switch to the non-root user
27
  USER appuser
28
 
29
  # Expose the port that the application listens on
 
15
  # Set environment variable to point to the new cache directory
16
  ENV HF_HOME=/cache/huggingface
17
 
18
+ # Set the ownership of the entire /app directory and cache directory
19
+ RUN chown -R appuser:appgroup /app /cache/huggingface
20
+
21
+ # Switch to the non-root user
22
  USER root
23
 
24
  # Install Python dependencies
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
 
 
 
 
27
  USER appuser
28
 
29
  # Expose the port that the application listens on