Bikas0 commited on
Commit
0a4189b
·
verified ·
1 Parent(s): 627a1e0

Runtime error

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -13,12 +13,6 @@ RUN pip install --upgrade pip
13
  # Create directories for NLTK and Hugging Face cache data
14
  RUN mkdir -p /app/nltk_data /app/.cache/huggingface /app/.huggingface_cache
15
 
16
- # Change ownership of directories to the non-root user
17
- RUN chown -R nobody:nogroup /app
18
-
19
- # Switch to a non-root user
20
- USER nobody
21
-
22
  # Set environment variables
23
  ENV NLTK_DATA=/app/nltk_data
24
  ENV HF_HOME=/app/.huggingface_cache
@@ -26,6 +20,12 @@ ENV HF_HOME=/app/.huggingface_cache
26
  # Install any needed packages specified in requirements.txt
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
 
 
 
 
 
 
29
  # Make port 7860 available to the world outside this container
30
  EXPOSE 7860
31
 
 
13
  # Create directories for NLTK and Hugging Face cache data
14
  RUN mkdir -p /app/nltk_data /app/.cache/huggingface /app/.huggingface_cache
15
 
 
 
 
 
 
 
16
  # Set environment variables
17
  ENV NLTK_DATA=/app/nltk_data
18
  ENV HF_HOME=/app/.huggingface_cache
 
20
  # Install any needed packages specified in requirements.txt
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Change ownership of directories to the non-root user
24
+ RUN chown -R nobody:nogroup /app
25
+
26
+ # Switch to a non-root user
27
+ USER nobody
28
+
29
  # Make port 7860 available to the world outside this container
30
  EXPOSE 7860
31