Copying the source files into the container before installing dependencies with apt-get
forces a cache bust when any Cashtab files change. This saves ~25% (30 seconds) of build time when
rebuilding the docker image.
Details
Details
- Reviewers
majcosta - Group Reviewers
Restricted Project - Commits
- rABC6daeacab5488: Do not bust cached apt-install'd dependencies when source files change
Run this test plan before and after this patch:
docker build --no-cache -t cashtab .
Change a Cashtab source file, then:
docker build -t cashtab .
Sanity check:
docker run -it -p 9000:80 cashtab
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- cachebust-cashtab-apt
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 15108 Build 30166: Build Diff cashtab-tests Build 30165: arc lint + arc unit