Spaces:
Sleeping
Sleeping
File size: 524 Bytes
da7a188 9f8c29f e95ba52 da7a188 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | FROM python:3.10-slim
WORKDIR /app
# Added libgomp1 here to satisfy the OpenMP dependency
RUN apt-get update && apt-get install -y libopenblas-dev libgomp1 && 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 . .
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |