Spaces:
Running
Running
| # Use Python 3.9 | |
| FROM python:3.9 | |
| # Set working directory | |
| WORKDIR /code | |
| # Copy requirements and install them | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all files | |
| COPY . . | |
| # Grant permissions | |
| RUN chmod 777 . | |
| # Start the server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |