Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -22,8 +22,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
|
22 |
# Copy the current directory contents into the container at /app
|
23 |
COPY --chown=user . /app
|
24 |
|
25 |
-
#
|
26 |
-
RUN pip install --user
|
27 |
|
28 |
-
# Command to run the application using
|
29 |
-
CMD ["
|
|
|
22 |
# Copy the current directory contents into the container at /app
|
23 |
COPY --chown=user . /app
|
24 |
|
25 |
+
# Install Gunicorn (instead of Uvicorn)
|
26 |
+
RUN pip install --user gunicorn
|
27 |
|
28 |
+
# Command to run the application using Gunicorn
|
29 |
+
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
|