Spaces:
Sleeping
Sleeping
FROM python:3.9 | |
# Use root, no custom user | |
WORKDIR /app | |
# Install all packages globally | |
COPY requirements.txt requirements.txt | |
RUN pip install --no-cache-dir -r requirements.txt | |
# Copy code into container | |
COPY . . | |
# Start FastAPI with Uvicorn (now installed globally) | |
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |