automated update: 2026-06-10 23:27:48

This commit is contained in:
root
2026-06-10 23:27:48 -04:00
parent 4909ca3c2e
commit 4670ad2646
3 changed files with 315 additions and 174 deletions
+9 -11
View File
@@ -25,15 +25,14 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
WORKDIR /app
# Install dependencies first (cached unless pyproject.toml/uv.lock change)
# Copy everything first — uv sync needs the source to build the project
COPY pyproject.toml uv.lock ./
RUN uv sync --extra object --frozen \
&& uv cache clean
# Copy source code (invalidates cache only when code changes)
COPY if_curator/ if_curator/
COPY entrypoint.sh scheduler.py ./
RUN uv sync --extra object --frozen \
&& uv cache clean
RUN chmod +x /app/entrypoint.sh
# ── Runtime stage: CPU ────────────────────────────────────────────────────
@@ -50,7 +49,7 @@ HEALTHCHECK CMD test -f /app/entrypoint.sh || exit 1
ENTRYPOINT ["tini", "--", "/app/entrypoint.sh"]
# ── Build stage: GPU (amd64 only) ────────────────────────────────────────
FROM --platform=linux/amd64 nvidia/cuda:12.6.3-runtime-ubuntu22.04 AS build-gpu
FROM nvidia/cuda:12.6.3-runtime-ubuntu22.04 AS build-gpu
ENV DEBIAN_FRONTEND=noninteractive
@@ -74,15 +73,14 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
WORKDIR /app
# Install dependencies first (cached unless pyproject.toml/uv.lock change)
# Copy everything first — uv sync needs the source to build the project
COPY pyproject.toml uv.lock ./
RUN uv sync --extra gpu --extra object --frozen \
&& uv cache clean
# Copy source code (invalidates cache only when code changes)
COPY if_curator/ if_curator/
COPY entrypoint.sh scheduler.py ./
RUN uv sync --extra gpu --extra object --frozen \
&& uv cache clean
RUN chmod +x /app/entrypoint.sh
# ── Runtime stage: GPU ───────────────────────────────────────────────────