mirror of
https://github.com/Murasame-Dev/McStatus-API.git
synced 2025-12-17 05:38:00 +00:00
修改依赖相关配置
- pyproject `uvicorn[standard] -> fastapi[standard]` - requirements.txt 使用 `uv export` 生成 - Dockerfile 换用 `python:3.13` - README pip 安装增加版本提示
This commit is contained in:
parent
b08a84c63a
commit
1a98d2f926
4 changed files with 6 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM python:3.9
|
FROM python:3.13
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
@ -6,4 +6,4 @@ COPY . .
|
||||||
RUN pip install gunicorn && pip install -r requirements.txt
|
RUN pip install gunicorn && pip install -r requirements.txt
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"]
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,7 @@ pdm run app.py
|
||||||
<summary>pip</summary>
|
<summary>pip</summary>
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
# 请确保使用 Python >= 3.13!
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
python app.py
|
python app.py
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
[project]
|
[project]
|
||||||
name = "mcstatus-api"
|
name = "mcstatus-api"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
description = "Add your description here"
|
description = "A Minecraft Server status API based on FastAPI"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fastapi>=0.115.0",
|
"fastapi[standard]>=0.115.0",
|
||||||
"uvicorn[standard]>=0.30.0",
|
"uvicorn>=0.30.0",
|
||||||
"mcstatus>=12.0.5",
|
"mcstatus>=12.0.5",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
BIN
requirements.txt
BIN
requirements.txt
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue