Skip to content

Commit f886a11

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 67aacf2 commit f886a11

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
@@ -220,6 +220,8 @@ RUN if [ "$EXTRA_ENTIRE" = "1" ]; then \
220220
fi
221221

222222
# Install Claude
223+
# Cache-bust: pass --build-arg CLAUDE_CACHEBUST=$(date +%s) to force a fresh install
224+
ARG CLAUDE_CACHEBUST=
223225
RUN npm install -g @anthropic-ai/claude-code@${CLAUDE_CODE_VERSION}
224226

225227
# Use tini as init process to properly reap zombie processes

setup-yolo.sh

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

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

0 commit comments

Comments
 (0)