File size: 385 Bytes
f360f9e
 
7e989ac
ad0ffb4
 
7e989ac
ad0ffb4
f360f9e
7e989ac
ad0ffb4
f360f9e
7e989ac
ad0ffb4
f360f9e
7e989ac
23975dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"]