Edu014 commited on
Commit
47c99da
·
verified ·
1 Parent(s): d447883

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -5,17 +5,20 @@ WORKDIR /app
5
  ENV PYTHONUNBUFFERED=1 \
6
  PYTHONDONTWRITEBYTECODE=1 \
7
  PIP_NO_CACHE_DIR=1 \
8
- HF_HUB_DISABLE_TELEMETRY=1
 
9
 
 
10
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
11
  curl \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  COPY requirements.txt .
 
15
  RUN pip install -r requirements.txt
16
 
17
- # DOWNLOAD CIRÚRGICO: Baixamos APENAS a quantização Q8_0 para embeddings.
18
- # Isso economiza GBs de download e garante a precisão matemática do OpenClaw.
19
  RUN python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='LiquidAI/LFM2.5-Embedding-350M-GGUF', local_dir='/app/model', allow_patterns=['*Q8_0.gguf'])"
20
 
21
  COPY . .
 
5
  ENV PYTHONUNBUFFERED=1 \
6
  PYTHONDONTWRITEBYTECODE=1 \
7
  PIP_NO_CACHE_DIR=1 \
8
+ HF_HUB_DISABLE_TELEMETRY=1 \
9
+ CMAKE_BUILD_PARALLEL_LEVEL=1
10
 
11
+ # O build-essential (gcc/g++) VOLTA para permitir a compilação do código-fonte.
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
+ build-essential \
14
  curl \
15
  && rm -rf /var/lib/apt/lists/*
16
 
17
  COPY requirements.txt .
18
+ # O CMAKE_BUILD_PARALLEL_LEVEL=1 acima impede o OOMKilled aqui.
19
  RUN pip install -r requirements.txt
20
 
21
+ # Download cirúrgico do Q8_0 via API Python (ignora bugs do CLI 'hf')
 
22
  RUN python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='LiquidAI/LFM2.5-Embedding-350M-GGUF', local_dir='/app/model', allow_patterns=['*Q8_0.gguf'])"
23
 
24
  COPY . .