CooLLaMACEO commited on
Commit
40f58a6
·
verified ·
1 Parent(s): 9a444d0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,20 +1,21 @@
1
- # We switch to 3.10 to match the most stable community prebuilt wheels
2
  FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
6
- # Install system essentials
7
- RUN apt-get update && apt-get install -y wget && rm -rf /var/lib/apt/lists/*
 
 
 
8
 
9
- # 1. Install PREBUILT llama-cpp-python (Community HF Space version)
10
- # This wheel is optimized for the HF Free Tier (16GB RAM)
11
  RUN pip install --no-cache-dir \
12
  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
13
 
14
- # 2. Install web dependencies
15
  RUN pip install --no-cache-dir fastapi uvicorn[standard] requests
16
 
17
- # 3. Setup models folder and download GPT-OSS-20B
18
  RUN mkdir -p ./models
19
  RUN wget -q -O ./models/gpt-oss-20b-Q3_K_M.gguf \
20
  https://huggingface.co/unsloth/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-Q3_K_M.gguf
 
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # The FIX: We added 'libgomp1' to the install list
6
+ RUN apt-get update && apt-get install -y \
7
+ wget \
8
+ libgomp1 \
9
+ && rm -rf /var/lib/apt/lists/*
10
 
11
+ # 1. Install PREBUILT llama-cpp-python
 
12
  RUN pip install --no-cache-dir \
13
  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
+ # 2. Web dependencies
16
  RUN pip install --no-cache-dir fastapi uvicorn[standard] requests
17
 
18
+ # 3. Model setup
19
  RUN mkdir -p ./models
20
  RUN wget -q -O ./models/gpt-oss-20b-Q3_K_M.gguf \
21
  https://huggingface.co/unsloth/gpt-oss-20b-GGUF/resolve/main/gpt-oss-20b-Q3_K_M.gguf