0

I have a Dockerfile and a docker.compose.yaml files. We often modify them, but it takes 2 hours to build the new image.

Is it possible to update or rebuild the image in a faster way? For example i don't want to reinstall all of the requirements.

I use ARM based linux, so probably this is the reason of the big installing time.

requirements.txt:

Flask~=2.2.2
requests~=2.28.1
lark~=1.1.2
lightgbm~=3.3.2
numpy~=1.19.5
pandas~=1.3.3
scikit-image~=0.18.1
scikit-learn~=0.23.2

scikit-learn~=0.23.2 takes about 45 minutes to install

  • Can you [edit] the question to include a [mcve]? There are definitely tricks that can make an image rebuild faster (2 hours is a really long time to build anything) but without knowing what you have now it's hard to give any concrete suggestions. – David Maze Dec 05 '22 at 12:03

0 Answers0