Spaces:
Runtime error
Runtime error
srivatsavdamaraju
commited on
Commit
•
dcccfd9
1
Parent(s):
50d1e24
Update Dockerfile
Browse files- 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 ["
|
|
|
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"]
|