File size: 586 Bytes
9890d81 66a650d 247f4fa 66a650d 9890d81 66a650d 247f4fa 9890d81 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM python:3.10-slim
# System-Tools für den Betrieb
RUN apt-get update && apt-get install -y \
libopenblas-dev \
ninja-build \
build-essential \
pkg-config \
curl \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /code
# Installiere llama-cpp-python OHNE Kompilieren (Pre-built für CPU)
RUN pip install --no-cache-dir \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu \
llama-cpp-python
# Restliche Pakete
RUN pip install --no-cache-dir gradio huggingface_hub
COPY app.py .
# Port für HF Spaces
EXPOSE 7860
CMD ["python", "app.py"] |