senku21230 commited on
Commit
baaad15
·
verified ·
1 Parent(s): 035cc44

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -3,13 +3,14 @@ FROM python:3.11-slim
3
  WORKDIR /app
4
  RUN mkdir -p /app/models
5
 
6
- # gcc/cmake লাগবে llama-cpp-python build করতে
7
- RUN apt-get update && apt-get install -y \
8
- gcc g++ cmake make \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
13
 
14
  COPY app.py .
15
 
 
3
  WORKDIR /app
4
  RUN mkdir -p /app/models
5
 
6
+ RUN apt-get update && apt-get install -y gcc g++ cmake make \
 
 
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  COPY requirements.txt .
10
+
11
+ # RAM বাঁচাতে single thread-এ compile
12
+ RUN CMAKE_BUILD_PARALLEL_LEVEL=1 MAKEFLAGS="-j1" \
13
+ pip install --no-cache-dir -r requirements.txt
14
 
15
  COPY app.py .
16