a6bf71a083
## Summary - Fixes #1349: `Template.fromDockerfile` (JS) and `Template.from_dockerfile` (Python) silently dropped intermediate sources from multi-source `COPY`/`ADD`, keeping only the first one and producing broken images without warning. - Both parsers now emit one `copy()` call per source to the same destination (matching Docker semantics), preserving `--chown` across all calls. - Added tests in both SDKs (multi-source COPY, and multi-source COPY with `--chown`), plus changesets for `e2b` and `@e2b/python-sdk`. ## Test plan - [x] `pnpm run test tests/template/methods/fromDockerfile.test.ts` (JS) - [x] `poetry run pytest tests/{async,sync}/template_*/methods/test_from_dockerfile.py` (Python) - [x] `pnpm run format` / `pnpm run lint` 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
346 B
346 B
e2b, @e2b/python-sdk
| e2b | @e2b/python-sdk |
|---|---|
| patch | patch |
fix(sdks): Template.fromDockerfile / Template.from_dockerfile now correctly handle multi-source COPY/ADD instructions. Previously, only the first source was kept and all intermediate sources were silently dropped; now each source is emitted as its own copy() call to the same destination.