ci: work pool + Gitee pull deployment (Dockerfile, prefect.yaml)
This commit is contained in:
+15
@@ -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"]
|
||||
Reference in New Issue
Block a user