py-rus commited on
Commit
4e80342
·
verified ·
1 Parent(s): 992ee8c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -7
Dockerfile CHANGED
@@ -1,7 +1,5 @@
1
- # We use 3.10 because it has the most stable pre-built AI engines
2
  FROM python:3.10-slim
3
 
4
- # Install base system tools
5
  RUN apt-get update && apt-get install -y \
6
  build-essential \
7
  && rm -rf /var/lib/apt/lists/*
@@ -9,14 +7,11 @@ RUN apt-get update && apt-get install -y \
9
  WORKDIR /app
10
  COPY . .
11
 
12
- # 1. Install Streamlit
13
- RUN pip install --no-cache-dir streamlit
14
 
15
- # 2. CRITICAL: This installs the PRE-BUILT wheel for HF Spaces.
16
- # By pointing directly to the .whl file, we skip the memory-heavy build process.
17
  RUN pip install --no-cache-dir https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl
18
 
19
  EXPOSE 7860
20
 
21
- # Start Nova
22
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  RUN apt-get update && apt-get install -y \
4
  build-essential \
5
  && rm -rf /var/lib/apt/lists/*
 
7
  WORKDIR /app
8
  COPY . .
9
 
10
+ RUN pip install --no-cache-dir streamlit huggingface-hub
 
11
 
12
+ # Added huggingface-hub to this line as well to be safe
 
13
  RUN pip install --no-cache-dir https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl
14
 
15
  EXPOSE 7860
16
 
 
17
  CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]