Spaces:
Runtime error
Runtime error
| #FROM python:3.9 | |
| #WORKDIR /code | |
| #COPY ./requirements.txt /code/requirements.txt | |
| #RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| #COPY . . | |
| # Use the official Python image as base | |
| FROM python:3.9 | |
| # Set the working directory in the container | |
| WORKDIR /code | |
| # Copy the requirements file into the container at /code | |
| COPY requirements.txt /code/ | |
| # Install any dependencies specified in requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy the rest of the application code into the container at /code | |
| COPY . /code/ | |
| CMD ["gunicorn","-b" ,"0.0.0.0:7860","app.main:app"] | |