universal-runtime / Dockerfile
Umithan's picture
Create Dockerfile
f1cef9c verified
Raw
History Blame Contribute Delete
478 Bytes
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"]