浏览代码

set root_path by command line

chenhaiyang 1 年之前
父节点
当前提交
1421a0ba8e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -15,4 +15,4 @@ ENV TZ=Asia/Shanghai
 
 EXPOSE 8002
 
-CMD ["uvicorn", "app.main:app", "--root-path /env-py", "--log-level", "info", "--host", "0.0.0.0", "--port", "8002"]
+CMD ["uvicorn", "app.main:app", "--root-path", "/env-py", "--log-level", "info", "--host", "0.0.0.0", "--port", "8002"]