1adaodoze commited on
Commit
feb4c00
·
verified ·
1 Parent(s): cd7e235

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -1,20 +1,19 @@
1
- # Dockerfile
2
  FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
6
- # Instala dependências do sistema para OpenBLAS (aceleração de CPU)
7
  RUN apt-get update && apt-get install -y \
8
  gcc g++ make cmake git libopenblas-dev \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # 1. Instala o llama-cpp-python a partir de um wheel pré-compilado (rápido e sem timeout)
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. Instala as demais dependências do requirements.txt
16
  COPY requirements.txt .
17
- RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Copia o código da aplicação
20
  COPY . .
 
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
+ # Instala dependências do sistema necessárias para o OpenBLAS (aceleração de CPU)
6
  RUN apt-get update && apt-get install -y \
7
  gcc g++ make cmake git libopenblas-dev \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
+ # Instala o llama-cpp-python a partir de um wheel pré-compilado e confiável
11
+ RUN pip install --no-cache-dir --root-user-action=ignore \
12
+ https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.19/llama_cpp_python-0.3.19-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
13
 
14
+ # Copia e instala as demais dependências
15
  COPY requirements.txt .
16
+ RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
17
 
18
  # Copia o código da aplicação
19
  COPY . .