ci: work pool + Gitee pull deployment (Dockerfile, prefect.yaml)

This commit is contained in:
yeuimu
2026-07-23 08:18:56 +00:00
parent 4cba1da4e1
commit 3e32238a1e
3 changed files with 102 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends git curl ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
ENV PATH="/root/.local/bin:$PATH"
WORKDIR /opt/app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-install-project
ENV PATH="/opt/app/.venv/bin:$PATH"
CMD ["prefect", "worker", "start", "-p", "inkreach-pool", "--type", "process"]