Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Andrew Nesbitt
Andrew Nesbitt
@andrewnez@mastodon.social  ·  activity timestamp 8 hours ago

Most package managers were designed for laptops with warm caches, not ephemeral Docker builds that start clean every time: https://nesbitt.io/2026/02/15/separating-download-from-install-in-docker-builds.html

Andrew Nesbitt

Separating Download from Install in Docker Builds

Most package managers could separate download from install for better Docker layer caching.
  • Copy link
  • Flag this post
  • Block
synlogic4242
synlogic4242
@synlogic4242@social.vivaldi.net replied  ·  activity timestamp 2 hours ago

@andrewnez yeah I have no doubt that the central "phone home" points for all the major package systems have gotten hammered in recent years. between ubiquitious cloud CI/CD, then Docker then add in LLM agents, yikes...

  • Copy link
  • Flag this comment
  • Block
Pradyun Gedam
Pradyun Gedam
@pradyunsg@mastodon.social replied  ·  activity timestamp 6 hours ago

@andrewnez one smol note: You can use pip wheel to create a "wheelhouse" while keeping the install step separated still!

  • Copy link
  • Flag this comment
  • Block
Andrew Nesbitt
Andrew Nesbitt
@andrewnez@mastodon.social replied  ·  activity timestamp 6 hours ago

@pradyunsg ah nice, i'll update the post

  • Copy link
  • Flag this comment
  • Block
Alyssa Coghlan
Alyssa Coghlan
@ancoghlan@mastodon.social replied  ·  activity timestamp 6 hours ago

@andrewnez Hmm, given that layers are just tarballs anyway, I wonder how caching in a layer compares performance wise to caching the cache directly. I guess the image level caching would avoid the cache upload step after each run.

  • Copy link
  • Flag this comment
  • Block
Andrew France
Andrew France
@Odaeus@social.vivaldi.net replied  ·  activity timestamp 7 hours ago

@andrewnez thanks for looking into this. It’s an uphill battle just to get colleagues to care about being a good open source citizen and not downloading all the packages on every build. I can’t imagine the cumulative cost of this waste across all developers.

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.27 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct