Skip to content

Fix 'use omit=dev' warning. copy package-lock.json if it exists#632

Merged
acalcutt merged 3 commits intomaptiler:masterfrom
WifiDB:dockerfile_fixes
Oct 28, 2022
Merged

Fix 'use omit=dev' warning. copy package-lock.json if it exists#632
acalcutt merged 3 commits intomaptiler:masterfrom
WifiDB:dockerfile_fixes

Conversation

@acalcutt
Copy link
Copy Markdown
Collaborator

Changes "--production" to "--omit=dev" to avoid docker build warning.

Adds a package-lock.json to the project.. Copy package-lock.json to docker it exists.

Copy link
Copy Markdown
Contributor

@mnutt mnutt left a comment

Choose a reason for hiding this comment

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

This looks good, I think instead of npm install we could also try using npm ci which ensures that it uses only the exact version specified in the package-lock.json?

light version won't copy over package-lock, so keep that npm install.
@acalcutt acalcutt merged commit 1243405 into maptiler:master Oct 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants