Spaces:
Running
Running
FROM python:3.9 | |
# Set the working directory | |
WORKDIR /code | |
# Copy the requirements file | |
COPY ./requirements.txt /code/requirements.txt | |
# Install dependencies | |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
# Copy the rest of the application code | |
COPY . . | |
# Command to run the application with increased timeout | |
CMD ["hypercorn", "-b", "0.0.0.0:7860", "app:app"] | |