docker/embeddings.Dockerfile aktualisiert
Some checks failed
Deploy mindnet to llm-node / deploy (push) Failing after 2s

This commit is contained in:
Lars 2025-09-03 17:31:26 +02:00
parent 7bed114d65
commit 3fb93c2ccc

View File

@ -5,24 +5,24 @@ ENV TRANSFORMERS_CACHE=/srv/.hf_cache \
PIP_NO_CACHE_DIR=1 \ PIP_NO_CACHE_DIR=1 \
PYTHONUNBUFFERED=1 PYTHONUNBUFFERED=1
# Optional: Systemlibs (meist nicht nötig, aber schadet nicht) # Minimal nötige Systemlibs für numpy/scipy/sklearn/torch
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential git wget ca-certificates && \ libgomp1 libstdc++6 libgfortran5 ca-certificates wget && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
WORKDIR /srv WORKDIR /srv
# 1) CPU-Torch fest aus CPU-Index (kleiner, ohne CUDA) # CPU-Torch fest (kein CUDA, kleine Wheels)
RUN python -m pip install --upgrade pip && \ RUN python -m pip install --upgrade pip && \
pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu "torch==2.2.2" pip install --no-cache-dir --index-url https://download.pytorch.org/whl/cpu "torch==2.2.2"
# 2) Restliche Pakete (getrennt, damit torch nicht überschrieben wird) # Satztransformer + Uvicorn/FastAPI
RUN pip install --no-cache-dir \ RUN pip install --no-cache-dir \
fastapi==0.111.0 \ fastapi==0.111.0 \
uvicorn[standard]==0.30.1 \ uvicorn[standard]==0.30.1 \
"sentence-transformers==3.0.1" sentence-transformers==3.0.1
# App-Code in das Image (nur embed_server.py) # App rein
COPY ../app/embed_server.py /srv/embed_server.py COPY ../app/embed_server.py /srv/embed_server.py
EXPOSE 8990 EXPOSE 8990