Toilatop1sever commited on
Commit
b78d107
·
verified ·
1 Parent(s): 8042903

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -2,18 +2,12 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Cài curl (cần cho việc tải model, nếu dùng)
6
  RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
7
 
8
- # Cài llama-cpp-python từ wheel đã biên dịch sẵn – tiết kiệm RAM build tối đa
9
- RUN pip install --no-cache-dir \
10
- https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.23/llama_cpp_python-0.3.23-cp310-cp310-manylinux_2_17_x86_64.whl
11
-
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Copy code vào sau cùng
16
  COPY . .
17
 
18
- # Chạy app
19
  CMD ["python", "app.py"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
6
 
7
+ # Cài đặt các thư viện Python cần thiết
 
 
 
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
 
11
  COPY . .
12
 
 
13
  CMD ["python", "app.py"]