PreethiCarmelBosco commited on
Commit
6c7a3a5
·
verified ·
1 Parent(s): 6fb7f6b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -9
Dockerfile CHANGED
@@ -1,15 +1,11 @@
1
- # Use a standard Python 3.12 image
2
- FROM python:3.12-slim
3
 
4
  WORKDIR /app
5
 
6
- # --- FIX: Install build-essential and cmake ---
7
- # llama-cpp-python needs to be compiled, so we must install
8
- # C/C++ compilers (build-essential) and cmake first.
9
- RUN apt-get update && apt-get install -y build-essential cmake
10
-
11
- # Install all Python dependencies
12
- RUN pip install "llama-cpp-python[server]" huggingface_hub
13
 
14
  # --- Model Download ---
15
  # Copy the download script into the container
 
1
+ # Use a pre-built image that already has llama-cpp-python compiled
2
+ FROM ghcr.io/abetlen/llama-cpp-python:latest
3
 
4
  WORKDIR /app
5
 
6
+ # The base image already has llama-cpp-python,
7
+ # so we only need to install huggingface_hub
8
+ RUN pip install huggingface_hub
 
 
 
 
9
 
10
  # --- Model Download ---
11
  # Copy the download script into the container