Buildx pull image from custom base image location in Dockerfile

hi there. I have being hunting around through the doc and I can not seam to find the answer.
I am looking to pull a base image from a custom location
I am trying to pull bianbu base image for spacemit k1 device which is ubuntu:noble type base image but with custom modules and apps for the spacemit k1 cpu

the Dockerfile is being compile on a Riscv64 spacemit k1 device so not worried about emulation

the base image is this one :

https://archive.spacemit.com/bianbu-base/bianbu-base-24.04-base-riscv64.tar.gz

or

harbor.spacemit.com/bianbu/bianbu:latest

I tried pulling bianbu:latest first but i can not seam to to get it to to use the local copy I tried both the ID and bianbu:latest

but I get this error:

ERROR [internal] load metadata for docker.io/library/bianbu:latest

and I want to use the Bianbu base image instead of debian:12

ARG DEBIAN_FRONTEND=noninteractive

# Globally set pip break-system-packages option to avoid having to specify it every time
ARG PIP_BREAK_SYSTEM_PACKAGES=1

ARG BASE_IMAGE=debian:12

or would I pull the image loacally like this :

$ sudo debootstrap focal focal > /dev/null
$ sudo tar -C focal -c . | docker import - focal

sha256:81ec9a55a92a5618161f68ae691d092bf14d700129093158297b3d01593f4ee3

$ docker run focal cat /etc/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04 LTS"

You can create an image from scratch using

FROM scratch

at the beginning of the dockerfile and ADD or COPY the content of the base image into the scratch image which would be a completely empty image except the mounted resolv.conf and other fundamental files that doesn’t come from images…

Recommended links:

NOTE: The ADD instruction can use a URL of an archive to extract into the image, but its behavior depends on the file extension and I can never remember it so I never use it. I always prefer using COPY and a shell script maybe that uses curl to download the archive and docker to build the image.