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 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Start the FastAPI app on port 7860, the default port expected by Spaces | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |