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:
+2
-3
@@ -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 ─────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user