Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -13,7 +13,10 @@ COPY --chown=user . .
|
|
13 |
EXPOSE 7860
|
14 |
|
15 |
# Optimization: Baseline
|
16 |
-
CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "4"]
|
|
|
|
|
|
|
17 |
|
18 |
# Optimization: Shared memory with many threads
|
19 |
# CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "4", "--timeout", "120"]
|
|
|
13 |
EXPOSE 7860
|
14 |
|
15 |
# Optimization: Baseline
|
16 |
+
# CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "4"]
|
17 |
+
|
18 |
+
# Baseline with 1 worker only
|
19 |
+
CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "1"]
|
20 |
|
21 |
# Optimization: Shared memory with many threads
|
22 |
# CMD ["gunicorn", "app:server", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "4", "--timeout", "120"]
|