Spaces:
Sleeping
Sleeping
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.9 | |
COPY ./requirements.txt /app/requirements.txt | |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt | |
COPY ./app /app | |
# Start the FastAPI app on port 7860, the default port expected by Spaces | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |