Spaces:
Sleeping
Sleeping
File size: 500 Bytes
ddbe49d 7cc344a ddbe49d 7cc344a ddbe49d 7cc344a ddbe49d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | FROM python:3.10-slim
RUN apt-get update && apt-get install -y \
gcc g++ make cmake git libopenblas-dev \
&& rm -rf /var/lib/apt/lists/*
# Prebuilt llama-cpp-python для CPU HF Spaces
RUN pip install --no-cache-dir \
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
RUN pip install --no-cache-dir huggingface-hub fastapi uvicorn
WORKDIR /app
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"] |