BinKhoaLe1812 commited on
Commit
e201c12
·
verified ·
1 Parent(s): 435c298

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -0
Dockerfile CHANGED
@@ -14,6 +14,15 @@ COPY . .
14
  # Install dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
 
 
 
 
 
 
 
 
17
  # Set Hugging Face cache directory to persist model downloads
18
  ENV HF_HOME="/home/user/.cache/huggingface"
19
  ENV SENTENCE_TRANSFORMERS_HOME="/home/user/.cache/huggingface/sentence-transformers"
 
14
  # Install dependencies
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
+ # Verify CSV file is present and accessible
18
+ RUN ls -la /app/utils/symbipredict_2022.csv || echo "CSV file not found"
19
+
20
+ # Test CSV loading in Docker environment
21
+ RUN python /app/test_docker_csv.py
22
+
23
+ # Clean up test file
24
+ RUN rm /app/test_docker_csv.py
25
+
26
  # Set Hugging Face cache directory to persist model downloads
27
  ENV HF_HOME="/home/user/.cache/huggingface"
28
  ENV SENTENCE_TRANSFORMERS_HOME="/home/user/.cache/huggingface/sentence-transformers"