Pamudu13 commited on
Commit
7e989ac
1 Parent(s): d575dca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -1,11 +1,16 @@
1
  FROM python:3.9
2
 
 
3
  WORKDIR /code
4
 
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
 
7
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
 
 
9
  COPY . .
10
 
11
- CMD ["gunicorn", "-b","0.0.0.0:7860","app:app" ]
 
 
1
  FROM python:3.9
2
 
3
+ # Set the working directory
4
  WORKDIR /code
5
 
6
+ # Copy the requirements file
7
  COPY ./requirements.txt /code/requirements.txt
8
 
9
+ # Install dependencies
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
+ # Copy the rest of the application code
13
  COPY . .
14
 
15
+ # Command to run the application with increased timeout
16
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]