supertskone commited on
Commit
7018857
·
verified ·
1 Parent(s): ca4476e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -16,6 +16,12 @@ RUN apt-get update && apt-get install -y \
16
  RUN pip install --no-cache-dir --upgrade pip
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
 
 
 
 
 
 
19
  # Expose port 8501 for Streamlit and port 5000 for Flask
20
  EXPOSE 8501
21
  EXPOSE 5000
 
16
  RUN pip install --no-cache-dir --upgrade pip
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
+ # Set environment variable for Hugging Face cache
20
+ ENV HF_HOME=/app/cache
21
+
22
+ # Create the cache directory
23
+ RUN mkdir -p /app/cache
24
+
25
  # Expose port 8501 for Streamlit and port 5000 for Flask
26
  EXPOSE 8501
27
  EXPOSE 5000