Prajith04 commited on
Commit
0c80a36
·
verified ·
1 Parent(s): 5537b02

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -4
Dockerfile CHANGED
@@ -12,10 +12,7 @@ COPY . /app
12
  # Install Python packages
13
  RUN pip install --no-cache-dir --upgrade pip
14
  RUN pip install --no-cache-dir -r requirements.txt
15
- RUN chmod -R 777 /app/.cache
16
-
17
- # Preload model into cache
18
- RUN python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')"
19
 
20
  # Expose port for Hugging Face Spaces
21
  ENV PORT 7860
 
12
  # Install Python packages
13
  RUN pip install --no-cache-dir --upgrade pip
14
  RUN pip install --no-cache-dir -r requirements.txt
15
+ RUN mkdir -p /app/cache && chmod -R 777 /app/cache
 
 
 
16
 
17
  # Expose port for Hugging Face Spaces
18
  ENV PORT 7860