KBaba7 commited on
Commit
a49f339
·
verified ·
1 Parent(s): 8474b50

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -7,6 +7,9 @@ RUN apt-get update && apt-get install -y \
7
  git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
 
 
 
10
  # Clone llama.cpp
11
  RUN git clone https://github.com/ggerganov/llama.cpp /app/llama.cpp
12
 
@@ -22,5 +25,8 @@ RUN pip install --no-cache-dir -r requirements.txt
22
  # Copy your app code
23
  COPY . .
24
 
 
 
 
25
  # Set the entrypoint
26
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
7
  git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Set environment variable for HF cache
11
+ ENV HF_HOME=/tmp/huggingface_cache
12
+
13
  # Clone llama.cpp
14
  RUN git clone https://github.com/ggerganov/llama.cpp /app/llama.cpp
15
 
 
25
  # Copy your app code
26
  COPY . .
27
 
28
+ # Ensure the cache directory exists
29
+ RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
30
+
31
  # Set the entrypoint
32
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]