fix: speed up claude-dev base image availability
Deploy Claude Dev (Dev) / deploy-claude-dev-dev (push) Failing after 33s

Switch claude-dev to node:20-bookworm-slim and preload the base image from server2 in CI to avoid slow pulls on the NAS runner.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Gan, Jimmy
2026-03-03 00:56:02 +08:00
parent ce061c1977
commit 19001edfbd
2 changed files with 7 additions and 1 deletions
@@ -52,6 +52,12 @@ jobs:
echo "CLAUDE_DEV_IMAGE_TAG=${image_tag}" >> "$GITHUB_ENV"
echo "CLAUDE_DEV_IMAGE=${image_ref}" >> "$GITHUB_ENV"
- name: Preload base image from server2
if: env.ROLLBACK_ONLY == '0'
run: |
set -euo pipefail
ssh -o StrictHostKeyChecking=accept-new server2 "podman pull docker.io/library/node:20-bookworm-slim >/dev/null && podman save docker.io/library/node:20-bookworm-slim" | docker load
- name: Build claude-dev image
if: env.ROLLBACK_ONLY == '0'
run: |
+1 -1
View File
@@ -1,4 +1,4 @@
FROM node:20-bookworm
FROM node:20-bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive