CoolFace
Apppublic

akhilchint/tiny-llama-api-endpoint

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile15 linesDownload Raw Back to root
1FROM python:3.10-slim2 3WORKDIR /app4 5# Install system dependencies (optional: for transformers/tokenizers etc.)6RUN apt-get update && apt-get install -y git && apt-get clean7 8# Copy everything into /app9COPY . .10 11# Install Python dependencies12RUN pip install --no-cache-dir -r requirements.txt13 14# Start FastAPI on port 7860 (what Hugging Face expects)15CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]