Skip to content

Commit 59d202f

Browse files
just-mengclaude
andcommitted
Bust Podman layer cache to ensure Claude Code upgrades on rebuild
The `npm install -g @anthropic-ai/claude-code@latest` layer was cached by Podman, so rebuilding via `setup-yolo.sh --build=yes` silently reused the old version instead of fetching the latest. Add a CLAUDE_CACHEBUST build arg (set to epoch seconds) before the npm install layer so it is always re-evaluated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 472d28b commit 59d202f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

images/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/
117117
-x
118118

119119
# Install Claude
120+
# Cache-bust: pass --build-arg CLAUDE_CACHEBUST=$(date +%s) to force a fresh install
121+
ARG CLAUDE_CACHEBUST=
120122
RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}
121123

122124
# Install Playwright and Chromium browser if enabled

setup-yolo.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ elif [ "$BUILD_MODE" = "yes" ] || [ "$IMAGE_EXISTS" = false ]; then
152152
echo
153153

154154
TZ=$(timedatectl show --property=Timezone --value 2>/dev/null || echo "UTC")
155-
BUILD_ARGS=(--build-arg "TZ=$TZ")
155+
BUILD_ARGS=(--build-arg "TZ=$TZ" --build-arg "CLAUDE_CACHEBUST=$(date +%s)")
156156
if [ -n "$EXTRA_PACKAGES" ]; then
157157
BUILD_ARGS+=(--build-arg "EXTRA_PACKAGES=$EXTRA_PACKAGES")
158158
fi

0 commit comments

Comments
 (0)