Spaces:
Runtime error
Runtime error
| # Use the official Python image from the Docker Hub | |
| FROM python:3.9 | |
| # Set the working directory to /code | |
| WORKDIR /code | |
| # Copy requirements.txt to the docker container | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install any dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy the current directory contents into the container at /code | |
| COPY . . | |
| # Run the command to start Uvicorn | |
| CMD ["uvicorn", "app.app:app", "--host", "0.0.0.0", "--port", "7860"] | |