Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dugonzal opened this issue Apr 23, 2024 · 4 comments
Open

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

dugonzal opened this issue Apr 23, 2024 · 4 comments

Comments

@dugonzal
Copy link

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

Originally posted by @dugonzal in #2428

@tonistiigi
Copy link
Member

Follow the issue template to post issues.

@fruzitent
Copy link

fruzitent commented May 14, 2024

The <src> path must be inside the build context

Use build context

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

@thaJeztah
Copy link
Member

Related ticket (with some additional context);

@dugonzal
Copy link
Author

Thanks👋😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants