rexprimematrix commited on
Commit
cf4ae33
·
verified ·
1 Parent(s): 1ee03cc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -7
Dockerfile CHANGED
@@ -1,7 +1,8 @@
1
  FROM python:3.10-slim
2
 
3
- # C++ Tools ki zaroorat nahi hai kyunki hum direct .whl binary install kar rahe hain
4
- RUN apt-get update && apt-get install -y \
 
5
  curl \
6
  && rm -rf /var/lib/apt/lists/*
7
 
@@ -11,11 +12,12 @@ ENV PATH="/home/user/.local/bin:$PATH"
11
 
12
  WORKDIR /app
13
 
14
- # Direct official wheel binary download karke install karein (Zero compile time)
15
- RUN pip install --no-cache-dir \
16
- gradio \
17
- huggingface_hub \
18
- https://github.com/abetlen/llama-cpp-python/releases/download/v0.2.90/llama_cpp_python-0.2.90-cp310-cp310-manylinux_2_17_x86_64.whl
 
19
 
20
  COPY --chown=user . /app
21
 
 
1
  FROM python:3.10-slim
2
 
3
+ # System level updates
4
+ RUN apt-get update && apt-get install -y --no-install-recommends \
5
+ libgomp1 \
6
  curl \
7
  && rm -rf /var/lib/apt/lists/*
8
 
 
12
 
13
  WORKDIR /app
14
 
15
+ # Step 1: Base dependencies install karein
16
+ RUN pip install --no-cache-dir gradio huggingface_hub
17
+
18
+ # Step 2: CPU Pre-built wheel index URL se llama-cpp-python install karein
19
+ RUN pip install --no-cache-dir llama-cpp-python \
20
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/wheels/cpu
21
 
22
  COPY --chown=user . /app
23