Skip to content

Add build context usage comment to urc/Dockerfile#882

Merged
mskrzypkows merged 2 commits intourc-cli-dockerfilefrom
copilot/sub-pr-881
Feb 27, 2026
Merged

Add build context usage comment to urc/Dockerfile#882
mskrzypkows merged 2 commits intourc-cli-dockerfilefrom
copilot/sub-pr-881

Conversation

Copy link
Contributor

Copilot AI commented Feb 27, 2026

🚀 What's this PR do?

Addresses feedback from #881: adds a comment at the top of urc/Dockerfile documenting that the build context must be the repository root, not urc/. Without this, users running docker build urc/ will get a broken build since the Dockerfile references rust-toolchain.toml and the workspace Cargo.toml at the repo root.

# NOTE: This Dockerfile requires the repository root as the build context.
# Build with: docker build -f urc/Dockerfile .

📎 Related issues (optional)

🧠 Context

The Dockerfile copies rust-toolchain.toml from the repo root and builds via cargo build -p urc, which requires the workspace-level Cargo.toml. Using urc/ as the build context silently fails. The comment makes the required invocation explicit without adding any tooling overhead.

✅ Checklist

  • I've tested this locally
  • I've added relevant docs or comments
  • I've added or updated tests if needed
  • The branch with the feature is named feature/<name>

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…repo root

Co-authored-by: mskrzypkows <10705549+mskrzypkows@users.noreply.github.com>
Copilot AI changed the title [WIP] Update URC CLI Dockerfile based on PR feedback Add build context usage comment to urc/Dockerfile Feb 27, 2026
@mskrzypkows mskrzypkows marked this pull request as ready for review February 27, 2026 16:20
Copilot AI review requested due to automatic review settings February 27, 2026 16:20
@mskrzypkows mskrzypkows merged commit 7d3df6e into urc-cli-dockerfile Feb 27, 2026
1 check passed
@mskrzypkows mskrzypkows deleted the copilot/sub-pr-881 branch February 27, 2026 16:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds explicit build-context guidance to urc/Dockerfile so users build from the repository root (required due to references to root rust-toolchain.toml and workspace Cargo.toml), preventing broken builds when using docker build urc/.

Changes:

  • Add a top-of-file comment stating the Docker build context must be the repo root.
  • Provide the correct docker build -f urc/Dockerfile . invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

mskrzypkows added a commit that referenced this pull request Mar 4, 2026
* Dockerfile for URC CLI, better error logs

* fmt

* Update urc/Dockerfile

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add build context usage comment to urc/Dockerfile (#882)

* Initial plan

* Add usage comment to urc/Dockerfile clarifying build context must be repo root

Co-authored-by: mskrzypkows <10705549+mskrzypkows@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mskrzypkows <10705549+mskrzypkows@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: mskrzypkows <10705549+mskrzypkows@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants