Spaces:
Paused
Paused
truegleai commited on
Commit ·
532f2dd
1
Parent(s): 9d40b08
Use pre-built wheel and tiny model
Browse filesFiles changed (2)
- Dockerfile+9-6
- requirements.txt+2-1
12345678910111213FROM python:3.10-slimRUN apt-get update && apt-get install -y gcc g++ make cmakeRUN useradd -m -u 1000 userUSER userENV PATH="/home/user/.local/bin:$PATH"WORKDIR /appCOPY requirements.txt .RUN pip install --upgrade pipRUN pip install fastapi uvicorn huggingface-hubRUN pip install llama-cpp-pythonCOPY . .EXPOSE 7860CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]12345678910111213141516FROM python:3.10-slimRUN useradd -m -u 1000 userUSER userENV PATH="/home/user/.local/bin:$PATH"WORKDIR /appCOPY --chown=user requirements.txt .RUN pip install --no-cache-dir --upgrade pipRUN pip install --no-cache-dir -r requirements.txtCOPY --chown=user . .EXPOSE 7860CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
1234fastapiuvicornllama-cpp-pythonhuggingface-hub12345fastapiuvicornhuggingface-hub--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpullama-cpp-python
Dockerfile+9-6
requirements.txt+2-1