Skip to content

Commit 948f6a1

Browse files
manavgupclaude
andcommitted
fix(docker): Actually use CACHE_BUST ARG to invalidate cache
Added RUN command that references CACHE_BUST ARG to force Docker to invalidate cache and rebuild subsequent layers. Issue: ARG was declared but never used, so Docker continued using cached layers with CUDA PyTorch. Fix: Added 'RUN echo "Cache bust: $CACHE_BUST"' which forces Docker to execute this layer whenever CACHE_BUST value changes, invalidating all subsequent cached layers including poetry install. Related: #506 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 3e54487 commit 948f6a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

backend/Dockerfile.backend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ WORKDIR /app
3333
# Previous: POETRY_ROOT_MIGRATION=20251027 (Poetry root migration)
3434
# Updated: 20251028 to invalidate cache and install CPU-only PyTorch
3535
ARG CACHE_BUST=20251028
36+
RUN echo "Cache bust: $CACHE_BUST"
3637

3738
# Copy dependency files first for better layer caching
3839
COPY pyproject.toml poetry.lock ./

0 commit comments

Comments
 (0)