Skip to content

Conversation

@xenoscopic
Copy link
Contributor

Description

This PR updates the Dockerfile to regenerate the package-lock.json file during builds to ensure that Linux-only packages are included. docker build . currently fails otherwise.

Tool Details

n/a

Motivation and Context

The package-lock.json file committed to the repository may lack Linux-only packages that wouldn't be installed by npm install on (say) macOS. This currently blocks docker build . from succeeding. The only robust solution to this is to allow lock file updatings during the Docker build.

How Has This Been Tested?

Tested manually.

Breaking Changes

n/a

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Protocol Documentation
  • My changes follows MCP security best practices
  • I have updated the server README accordingly
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • I have added appropriate error handling
  • I have documented all environment variables and configuration options

Additional context

@lucadruda I think this should have been caught by https://github.com/docker/hub-mcp/actions/workflows/release.yml, but it looks like that workflow was disabled.

The package-lock.json file committed to the repository may lack
Linux-only packages that wouldn't be installed by `npm install` on (say)
macOS. This currently blocks `docker build .` from succeeding. The only
robust solution to this is to allow lock file updatings during the
Docker build.

Signed-off-by: Jacob Howard <[email protected]>
@xenoscopic xenoscopic requested a review from a team as a code owner October 31, 2025 17:31
@lucadruda lucadruda merged commit 2ff4b20 into docker:main Nov 3, 2025
2 checks passed
@lucadruda
Copy link
Collaborator

@xenoscopic thanks. The workflow is now disable as we rely on the Docker MCP toolkit CI now

@xenoscopic xenoscopic deleted the package-lock-sync branch November 3, 2025 22:16
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