ERROR: failed to solve: failed to compute cache key: failed to calculate checksum of ref f753c1c0-f1ae-4e19-89b5-ecfb01151aca::n2namopijuykv7dpylxif1h4j: "/src": not foundexit status 1

2025. 3. 28. 23:58k8s

Dockerfile

COPY --chown=docker:docker ./src  /app

build.sh

docker buildx build -t {domain}/{image}:{tag} .
docker push {domain}/{image}:{tag}

directory 구조

/docker
	build.sh
    Dockerfile
/src

조치: build.sh 변경

docker buildx build -t {domain}/{image}:{tag} -f Dockerfile ../
docker push {domain}/{image}:{tag}