Page MenuHomePhabricator

Use npm ci instead of install for docker deployments
ClosedPublic

Authored by jasonbcox on Feb 3 2021, 21:36.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC81b7eac423d6: Use npm ci instead of install for docker deployments
Summary

npm ci is a more robust way to build in CI or production environments
since it strictly builds from package-lock.json and will not modify it (contrary
to what npm install might do).

The NPM docs also suggest npm ci might be faster in some circumstances, but I don't
notice a perf difference on my machine.

Depends on D9158

Test Plan
docker build -t cashtab .

For sanity:

docker run -it -p 9000:80 cashtab

Diff Detail

Repository
rABC Bitcoin ABC
Branch
npm-ci
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 15110
Build 30170: Build Diffcashtab-tests
Build 30169: arc lint + arc unit