CrazyMonkey0 commited on
Commit
fc8b522
·
1 Parent(s): 5adcb69

build: use custom Docker base image from Docker Hub

Browse files

- Replace python:3.12 with crazymonkey00/llama-base:latest
- Remove llama-cpp-python installation (already in base image)
- Reduce build time from 40+ minutes to ~30 seconds

Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM python:3.12-slim-bookworm
2
 
3
  WORKDIR /app
4
 
@@ -37,10 +37,6 @@ RUN pip install --upgrade pip setuptools wheel
37
  # Install dependencies from requirements
38
  RUN pip install --no-cache-dir -r requirements.txt
39
 
40
- # Build and install llama-cpp-python with OpenBLAS
41
- ENV CMAKE_ARGS="-DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS"
42
- RUN pip install --no-cache-dir llama-cpp-python
43
-
44
  # Copy the rest of the application
45
  COPY . /app
46
 
 
1
+ FROM crazymonkey00/llama-base:latest
2
 
3
  WORKDIR /app
4
 
 
37
  # Install dependencies from requirements
38
  RUN pip install --no-cache-dir -r requirements.txt
39
 
 
 
 
 
40
  # Copy the rest of the application
41
  COPY . /app
42