buildx icon indicating copy to clipboard operation
buildx copied to clipboard

I try to do COPY ../example . , I get an error when doing this

Open dugonzal opened this issue 10 months ago • 4 comments

I try to do COPY ../example . , I get an error when doing this

Originally posted by @dugonzal in https://github.com/docker/buildx/discussions/2428

dugonzal avatar Apr 23 '24 15:04 dugonzal

Follow the issue template to post issues.

tonistiigi avatar Apr 24 '24 23:04 tonistiigi

The <src> path must be inside the build context

Use build context

COPY --from=code ./ ./
docker buildx build . –-build-context "code=../example/"

fruzitent avatar May 14 '24 16:05 fruzitent

Related ticket (with some additional context);

  • https://github.com/moby/buildkit/issues/2131

thaJeztah avatar May 14 '24 16:05 thaJeztah

Thanks👋😊

dugonzal avatar May 18 '24 09:05 dugonzal