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