浏览代码

-dev:更新了docker部署

LuoChinWen 4 周之前
父节点
当前提交
5ce9af6174
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/Dockerfile

+ 1 - 1
backend/Dockerfile

@@ -28,4 +28,4 @@ EXPOSE 8003
 HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
     CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8003/health')" || exit 1
 
-CMD ["python", "main.py"]
+CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8003"]