fix: move uv sync before source COPY for faster incremental builds

uv sync was after COPY if_curator/, so any source change invalidated
the 800MB dependency cache and re-downloaded everything. Now deps are
installed first and stay cached across code-only changes.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-12 00:04:28 +00:00
co-authored by Claude Sonnet 4.6
parent d3f3f2b4e2
commit 63cfe62340
+2 -3
View File
@@ -33,12 +33,11 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh \
WORKDIR /app
COPY pyproject.toml uv.lock ./
COPY if_curator/ if_curator/
COPY entrypoint.sh scheduler.py ./
RUN uv sync --frozen \
&& uv cache clean
COPY if_curator/ if_curator/
COPY entrypoint.sh scheduler.py ./
RUN chmod +x /app/entrypoint.sh
# ── Runtime stage ─────────────────────────────────────────────────────────