FROM python:3.11-slim WORKDIR /app # Install dependencies directly RUN pip install --no-cache-dir fastapi uvicorn sqlalchemy PyJWT # Copy all files into the root COPY . . # Create a directory for the database to persist RUN mkdir -p /data VOLUME /data # HF Spaces use port 7860 by default CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]