Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -21,8 +21,8 @@ RUN apt-get update && apt-get install -y \
|
|
| 21 |
RUN pip install --upgrade pip
|
| 22 |
RUN pip install -r requirements.txt
|
| 23 |
|
| 24 |
-
# Expose port
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
CMD ["
|
|
|
|
| 21 |
RUN pip install --upgrade pip
|
| 22 |
RUN pip install -r requirements.txt
|
| 23 |
|
| 24 |
+
# Expose port expected by Hugging Face
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
+
# Run app with 4 Gunicorn workers in production mode
|
| 28 |
+
CMD ["gunicorn", "--workers=4", "--bind=0.0.0.0:7860", "app:app"]
|