Spaces:
Sleeping
Sleeping
Commit
·
56e9744
1
Parent(s):
3efffd7
fix: Add --proxy-headers to uvicorn command
Browse files- Dockerfile +1 -1
Dockerfile
CHANGED
@@ -28,4 +28,4 @@ EXPOSE 7860
|
|
28 |
# 运行src目录下的app.py文件中的app实例
|
29 |
# --host 0.0.0.0 使其可以从外部访问
|
30 |
# --port 7860 使用Hugging Face指定的端口
|
31 |
-
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
28 |
# 运行src目录下的app.py文件中的app实例
|
29 |
# --host 0.0.0.0 使其可以从外部访问
|
30 |
# --port 7860 使用Hugging Face指定的端口
|
31 |
+
CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]
|