| FROM python:3.10-slim |
|
|
| WORKDIR /app |
|
|
| |
| RUN apt-get update && apt-get install -y \ |
| gcc g++ make cmake git libopenblas-dev curl \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| 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 |
|
|
| |
| COPY requirements.txt . |
| RUN pip install --no-cache-dir -r requirements.txt |
|
|
| COPY app.py . |
|
|
| |
| RUN python -c "from huggingface_hub import hf_hub_download; hf_hub_download('ikramknd/atlas-chat-9b-merged-Q4_K_S-GGUF', filename='atlas-chat-9b-merged-q4_k_s-imat.gguf', local_dir='/app/models')" |
|
|
| ENV PYTHONUNBUFFERED=1 |
| ENV GRADIO_SERVER_NAME=0.0.0.0 |
|
|
| EXPOSE 7860 |
|
|
| CMD ["python", "app.py"] |