diff --git a/install.zsh b/install.zsh index f4924d3..daba88e 100755 --- a/install.zsh +++ b/install.zsh @@ -394,10 +394,19 @@ function at-repos-docker-verify() { plc) check_file="/app/packages/server/dist/index.js" ;; *) return 0 ;; esac - if docker run --rm "$image" test -f "$check_file" 2>/dev/null; then + local cid + cid=$(docker create --entrypoint "" "$image" true 2>&1) + if [ $? -ne 0 ]; then + echo " ❌ FAILED: cannot create container from $image" + echo " $cid" + return 1 + fi + if docker cp "$cid:$check_file" /dev/null 2>/dev/null; then + docker rm "$cid" > /dev/null 2>&1 echo " ✅ Verified: $check_file exists" return 0 else + docker rm "$cid" > /dev/null 2>&1 echo " ❌ FAILED: $check_file not found in $image" return 1 fi