Spaces:
Running
Running
修改 Dockerfile 中的启动命令,将 Gunicorn 的工作进程数从 3 调整为 2
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -45,4 +45,4 @@ RUN --mount=type=secret,id=HF_Token,mode=0444,required=true \
|
|
45 |
|
46 |
|
47 |
# 修改启动命令,使用配置文件
|
48 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "
|
|
|
45 |
|
46 |
|
47 |
# 修改启动命令,使用配置文件
|
48 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]
|