Pārlūkot izejas kodu

set root_path by command line

chenhaiyang 1 gadu atpakaļ
vecāks
revīzija
1421a0ba8e
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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"]