Skip to content

Fix R image build by including the lockfile in the Docker context#145

Merged
adamvig96 merged 2 commits into
masterfrom
copilot/fix-build-and-push-job
Jun 17, 2026
Merged

Fix R image build by including the lockfile in the Docker context#145
adamvig96 merged 2 commits into
masterfrom
copilot/fix-build-and-push-job

Conversation

Copilot AI commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

The build-and-push Actions job for the R environment was failing before dependency restore began because the Docker build could not find the R lockfile in its build context. This updates the R image build to consume the repository lockfile directly and ensures that file is not excluded by .dockerignore.

  • Build context

    • Allow the root renv.lock into the Docker build context.
    • Keep the context narrowly scoped; only the required lockfile is added.
  • R Dockerfile

    • Copy renv.lock from the repository root instead of the .devcontainer/r path.
    • Remove the dependency on the devcontainer symlink path during image builds.
  • Result

    • The R image build no longer fails on:
      COPY .devcontainer/r/renv.lock renv.lock
    • It now uses:
      COPY renv.lock renv.lock

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build-and-push Fix R image build by including the lockfile in the Docker context Jun 17, 2026
Copilot AI requested a review from adamvig96 June 17, 2026 15:19
@adamvig96 adamvig96 marked this pull request as ready for review June 17, 2026 15:23
@adamvig96 adamvig96 merged commit 21d0c94 into master Jun 17, 2026
1 check passed
@adamvig96 adamvig96 deleted the copilot/fix-build-and-push-job branch June 17, 2026 15:26
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.

2 participants