From 442a135bf2c6017aa405dddfef61fd4165620c76 Mon Sep 17 00:00:00 2001 From: Zayden Jung Date: Sun, 17 May 2026 23:38:45 +0800 Subject: [PATCH] first commit --- .cliprepo.yaml | 0 .gitignore | 21 +++++++++++++++++++++ Dockerfile | 22 ++++++++++++++++++++++ README.md | 0 4 files changed, 43 insertions(+) create mode 100644 .cliprepo.yaml create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md diff --git a/.cliprepo.yaml b/.cliprepo.yaml new file mode 100644 index 0000000..e69de29 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1133ab4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Python-generated files +__pycache__/ +*.py[oc] +build/ +dist/ +wheels/ +*.egg-info + +# Virtual environments +.venv + +.env + +*.json +*.log + +.DS_Store + +.git + +prompts/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1c07d04 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM python:3.14-slim + +WORKDIR /app + +# 安装系统依赖(curl + 构建依赖) +RUN apt-get update && apt-get install -y \ + curl \ + && rm -rf /var/lib/apt/lists/* + +# 安装 uv +RUN pip install --no-cache-dir uv + +# 先复制依赖文件 +COPY pyproject.toml uv.lock ./ + +# 用 uv 安装依赖 +RUN uv sync --system + +# 再复制代码 +COPY . . + +CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29