Update Dockerfile
Browse files12312634567118910111213141518161718192220212225232425282627# 2) Dockerfile (paste as a new file)
```dockerfileFROM python:3.10-slim
# Avoid interactive tzdata etc.# Environment settingsENV DEBIAN_FRONTEND=noninteractive \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONUNBUFFERED=1
# System deps (optional but useful for some libs)# System dependenciesRUN apt-get update && apt-get install -y --no-install-recommends \ build-essential curl && \ rm -rf /var/lib/apt/lists/*
# Set work directoryWORKDIR /code
# Install Python deps first (cached layer)# Install Python dependenciesCOPY requirements.txt .RUN pip install --no-cache-dir -r requirements.txt
# Copy app files# Copy the rest of the appCOPY . .
# Expose HF Spaces default port# Expose Hugging Face default portEXPOSE 7860
# Start FastAPI with uvicorn# Start FastAPI app with uvicornCMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]Dockerfile+7-9