Browse Source

set root_path by command line

chenhaiyang 1 year ago
parent
commit
1421a0ba8e
1 changed files with 1 additions and 1 deletions
  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"]