mod: 修改接口的启动方式

This commit is contained in:
plf
2026-05-02 14:51:41 +08:00
parent d581ee1e7a
commit 9505257135
2 changed files with 5 additions and 1 deletions

View File

@@ -4,4 +4,4 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ ./app/
EXPOSE 8000
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["python", "app/main.py"]