Centaurus_cpp / Dockerfile
Sanya2025's picture
Update Dockerfile
7cc344a verified
Raw History Blame Contribute Delete
500 Bytes
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"]