FROM python:3.12-slim WORKDIR /code COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # copy app COPY . . # HF Spaces expects the service on port 7860 ENV PORT=7860 HOST=0.0.0.0 # If you need env defaults for blob path: ENV MODEL_BLOB_PATH=/tmp/model_blob.json EXPOSE 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]