Reduce number of docker layers
jug_xl
is using IMO too many layers. Ways to mitigate:
- combine many of the different RUN commands together. In principle we could get away with 3 blocks
- NPDet/EICD/Afterburner
- detectors/campaigns/benchmarks
- Juggler (should be alone and last for optimal usage in juggler)
- We are using ADDs to invalidate the buildcache. We can replace this by a
wget
in gitlab CI prior to runningdocker build
, followed bytar
+shasum
. Then we can pass those cache validation variables as ARG to the Dockerfile, which will not lead to unnecessary layers.