Spaces:
Build error
Build error
Download Dockerfile from vishnu714/LLM_TRIAL: direct link, hf CLI and curl.
- Browser
- Download file 680 Bytes
-
https://huggingface.co/spaces/vishnu714/LLM_TRIAL/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vishnu714/LLM_TRIAL/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vishnu714/LLM_TRIAL/resolve/main/Dockerfile
680 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY . /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 8501 | |
| RUN wget https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGUF/resolve/main/llama-2-7b-chat.Q5_K_M.gguf | |
| # Install FastAPI dependencies | |
| RUN pip install uvicorn | |
| # Expose FastAPI port | |
| EXPOSE 8000 | |
| # Create a script to run both Streamlit and FastAPI | |
| RUN echo '#!/bin/bash\n\ | |
| uvicorn app:app --host 0.0.0.0 --port 8000 &\n\ | |
| streamlit run app.py --server.port=8501 --server.address=0.0.0.0\n\ | |
| ' > /app/start.sh && chmod +x /app/start.sh | |
| CMD ["/app/start.sh"] |