Page MenuHomePhabricator

Do not bust cached apt-install'd dependencies when source files change
ClosedPublic

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

Details

Summary

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.

Test Plan

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

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable