KAI-STUDIO-Model / Dockerfile
StrawberryJelly's picture
Update Dockerfile
b90fff0 verified
Raw
History Blame Contribute Delete
750 Bytes
FROM python:3.10-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential libopenblas-dev && \
rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir \
"llama-cpp-python==0.3.23" \
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu && \
pip install --no-cache-dir fastapi==0.115.0 "uvicorn[standard]==0.30.6" huggingface_hub==0.25.2
RUN python -c "from huggingface_hub import hf_hub_download; \
hf_hub_download(repo_id='bartowski/Qwen2.5-7B-Instruct-GGUF', \
filename='Qwen2.5-7B-Instruct-Q4_K_M.gguf', \
local_dir='/models')"
COPY app.py .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]