NitinBot001 commited on
Commit
3acf31d
·
verified ·
1 Parent(s): ae4432b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -10,8 +10,12 @@ COPY . /app
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Make port 5000 available to the world outside this container
 
 
 
14
  EXPOSE 7860
15
 
16
- # Run the application
17
- CMD ["python", "AgriGo/app.py"]
 
 
10
  # Install any needed packages specified in requirements.txt
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # Install gunicorn
14
+ RUN pip install gunicorn
15
+
16
+ # Make port 7860 available to the world outside this container
17
  EXPOSE 7860
18
 
19
+ # Run the application with Gunicorn
20
+ # Format: gunicorn -w <workers> -b <bind-address> <module>:<app-instance>
21
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "AgriGo.app:app"]