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

Document the limitations of the infer sync with multi-stage Dockerfiles #6525

Closed
briandealwis opened this issue Aug 26, 2021 · 0 comments · Fixed by #6526
Closed

Document the limitations of the infer sync with multi-stage Dockerfiles #6525

briandealwis opened this issue Aug 26, 2021 · 0 comments · Fixed by #6526

Comments

@briandealwis
Copy link
Member

The Docker inferred sync only looks at ADD/COPY commands from the last stage in a multi-stage Dockerfile (#6524). This should be documented, with possible workarounds.

// only the COPY/ADD commands from the last image are syncable
fts, err := readCopyCmdsFromDockerfile(ctx, true, absDockerfilePath, workspace, buildArgs, cfg)

I believe this decision was made to avoid handling transitive copies in multi-stage Dockerfiles.

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

Successfully merging a pull request may close this issue.

1 participant