Skip to content

Commit package-lock.json and build oauth-exchange with npm ci - #322

Merged
javiertuya merged 1 commit into
mainfrom
node-lockfile-policy
Jul 27, 2026
Merged

Commit package-lock.json and build oauth-exchange with npm ci#322
javiertuya merged 1 commit into
mainfrom
node-lockfile-policy

Conversation

@javiertuya

Copy link
Copy Markdown
Owner

oauth-exchange had no lockfile, and the image was built with npm install --omit=dev and COPY package*.json, so each build resolved its own dependency tree.

Changes

  • commit the lockfile and copy it explicitly in the Dockerfile, so a missing lock fails the build instead of silently resolving a different tree
  • declare the Node version and pin the manifest (.nvmrc = 24, engines, private, exact versions)
  • ignore node_modules, not covered by any .gitignore until now

Notes

  • Image built and run locally (public node:24-alpine3.23 in place of the dhi.io hardened images, which need a login): the service starts normally.
  • Scope is oauth-exchange only; dashgit-web follows in a separate PR.

🤖 Generated with Claude Code

- commit the lockfile and copy it explicitly in the Dockerfile, so a
  missing lock fails the build instead of resolving a different tree
- declare the Node version and pin the manifest (.nvmrc = 24, engines,
  private, exact versions)
- ignore node_modules, which was not covered by any .gitignore

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@javiertuya
javiertuya merged commit 7847ee7 into main Jul 27, 2026
12 checks passed
@javiertuya
javiertuya deleted the node-lockfile-policy branch July 27, 2026 09:23
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.

1 participant