srivatsavdamaraju commited on
Commit
dcccfd9
1 Parent(s): 50d1e24

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -13,8 +13,11 @@ COPY requirements.txt /app/
13
  # Install dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
 
 
 
16
  # Copy the Python client script into the container
17
  COPY app.py /app/
18
 
19
- # Set the command to run the Python client
20
- CMD ["python", "app.py"]
 
13
  # Install dependencies
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ # Install gunicorn
17
+ RUN pip install gunicorn
18
+
19
  # Copy the Python client script into the container
20
  COPY app.py /app/
21
 
22
+ # Set the command to run the Python client with gunicorn
23
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8000", "app:app"]