Spaces:
Runtime error
Runtime error
File size: 478 Bytes
f1cef9c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | FROM python:3.9-slim
# Install build essential tools required to compile llama.cpp binaries
RUN apt-get update && apt-get install -y build-essential python3-dev && rm -rf /var/lib/apt/lists/*
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY . .
# Expose port 7860 as strictly required by Hugging Face Spaces infrastructure
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |