Download Dockerfile from Ahmad140/ChatBot: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/spaces/Ahmad140/ChatBot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ahmad140/ChatBot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ahmad140/ChatBot/resolve/main/Dockerfile
630 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| gcc \ | |
| g++ \ | |
| git \ | |
| libopenblas-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install prebuilt wheel of llama-cpp-python (avoids compilation timeout) | |
| 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 . . | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |