重写成 FastAPI (#3)

* 重写成FastAPI

* 修改依赖相关配置
- pyproject `uvicorn[standard] -> fastapi[standard]`
- requirements.txt 使用 `uv export` 生成
- Dockerfile 换用 `python:3.13`
- README pip 安装增加版本提示

---------

Co-authored-by: wyf9 <wyf9@wyf9.top>
This commit is contained in:
Murasame Noa 2025-08-28 11:29:23 +08:00 committed by GitHub
parent 859b6b1c53
commit 099a79fe5f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 44 additions and 31 deletions

View file

@ -1,4 +1,4 @@
FROM python:3.9
FROM python:3.13
WORKDIR /app
@ -6,4 +6,4 @@ COPY . .
RUN pip install gunicorn && pip install -r requirements.txt
EXPOSE 8000
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]