Skip to content

ci: optimize Docker cache usage#1004

Open
j-zimnowoda wants to merge 5 commits into
mainfrom
ci-dockefile-cache
Open

ci: optimize Docker cache usage#1004
j-zimnowoda wants to merge 5 commits into
mainfrom
ci-dockefile-cache

Conversation

@j-zimnowoda
Copy link
Copy Markdown
Contributor

Install dependencies before copying the source code to take advantage of Docker layer caching

Copy link
Copy Markdown

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

Optimizes the Docker build to improve layer caching by installing Node.js dependencies before copying the full source tree.

Changes:

  • Copy package*.json first to improve cache hits for npm ci.
  • Run npm ci before copying application sources, then proceed with build/lint/test steps.

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

Comment thread Dockerfile Outdated
@merll
Copy link
Copy Markdown
Contributor

merll commented May 29, 2026

The build-spec script fails. The required scripts for the "ci" may need to be copied separately. Or just the "npm install" could run before the rest.

Copy link
Copy Markdown

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread Dockerfile Outdated
Comment thread Dockerfile
Comment thread README.md Outdated
j-zimnowoda and others added 3 commits May 29, 2026 13:49
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@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