# Use dockerfile build args correctly, respect context path, fix image aliasing \(\#54210\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/17026b10d64e97a4abbcbc6bf3b5583e8aeba0aa)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 17026b10d64e97a4abbcbc6bf3b5583e8aeba0aa

Requested commit: 17026b10d64e97a4abbcbc6bf3b5583e8aeba0aa

Commit: 17026b10d64e97a4abbcbc6bf3b5583e8aeba0aa

Tree: 92a81503328de41eb849387189d9111bc2dd0705

Author: KyleBarton

Committer: GitHub

## Message

```
Use dockerfile build args correctly, respect context path, fix image aliasing (#54210)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #54193

Additionally, respects `cacheFrom` and `options` args defined in
devcontainer.json's `build` object. Also, addresses a bug which was
hiding these problems by overriding the primary build target with
aliasing.

Release Notes:

- Fixed an image aliasing but, respect build context and build args in
dev containers
```

## Parents

- [634e91bdace3946ed6959491b0ed46e35d877f76](https://git.cafe/gitcafe/zed/commit/634e91bdace3946ed6959491b0ed46e35d877f76?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/17026b10d64e97a4abbcbc6bf3b5583e8aeba0aa?format=markdown)
