diff --git a/Dockerfile b/Dockerfile index c313d21..8f7a959 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +CMD ["gunicorn", "-b", "0.0.0.0:8000", "app:app"] diff --git a/README.md b/README.md index cdcb24a..cfdf4c3 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ pdm run app.py pip ```bash +# 请确保使用 Python >= 3.13! pip install -r requirements.txt python app.py ``` diff --git a/pyproject.toml b/pyproject.toml index 4826e4f..482b799 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,11 @@ [project] name = "mcstatus-api" version = "0.1.0" -description = "Add your description here" +description = "A Minecraft Server status API based on FastAPI" readme = "README.md" requires-python = ">=3.13" dependencies = [ - "fastapi>=0.115.0", - "uvicorn[standard]>=0.30.0", + "fastapi[standard]>=0.115.0", + "uvicorn>=0.30.0", "mcstatus>=12.0.5", ] diff --git a/requirements.txt b/requirements.txt index b91e685..08c5e77 100644 Binary files a/requirements.txt and b/requirements.txt differ