<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">In the Marketplace docker files we have lines that run pip [1], bower or npm [2]. One of the main problems is this is slow, we get real perf problems on building out containers on AWS.<div class=""><br class=""></div><div class="">The suggested way I think to do this is build out all the requirements, zip them and stick them somewhere. Then instead use an ADD [3] command to pull the file down (which can be a URL).</div><div class=""><br class=""></div><div class="">So now I’ve got find a way to build those zip files, store them, make sure I get the right version and so on. That does feel like I’m reinventing a wheel here. Before I do that, is there a better way?<br class=""><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1] <a href="https://github.com/mozilla/zamboni/blob/master/Dockerfile#L28" class="">https://github.com/mozilla/zamboni/blob/master/Dockerfile#L28</a></div><div class="">[2] <a href="https://github.com/mozilla/fireplace/blob/master/Dockerfile#L15-L16" class="">https://github.com/mozilla/fireplace/blob/master/Dockerfile#L15-L16</a></div><div class="">[3] <a href="https://docs.docker.com/reference/builder/#add" class="">https://docs.docker.com/reference/builder/#add</a> </div></div></body></html>