harishkumar12k's picture
Update Dockerfile
b266f1a verified
Raw
History Blame
489 Bytes
FROM python:3.11
WORKDIR /app
# Install system basics
RUN apt-get update && apt-get install -y \
build-essential \
python3-dev \
& rm -rf /var/lib/apt/lists/*
# Install llama-cpp-python using the pre-built CPU wheel to avoid compilation errors
RUN pip install --no-cache-dir \
gradio \
huggingface_hub \
llama-cpp-python --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
COPY . .
# HF Spaces requirement
EXPOSE 7860
CMD ["python", "app.py"]