Selaa lähdekoodia

-dev:更新了docker部署

LuoChinWen 4 viikkoa sitten
vanhempi
sitoutus
5ce9af6174
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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"]