| ▲ | KronisLV 4 hours ago | |
> Which cool, great, I sure love "pip install"ing every time instead of just baking a single container image with it already installed. Obviously the correct thing for such a use case would be building their own image with whatever tools are needed and then using that. Unfortunately, then they’d probably get roasted for not maintaining the image well enough and not having proper enough automation set up to keep it recent in Docker Hub or wherever, which they’d then also have to do. On an individual level, it’s easier to just hold it wrong and do what works. Could also build the image locally once, but again, more work. I think the ideal DX on Docker’s side would be:
Basically support for some list of commands needing to be done, which would build an intermediate image locally and reuse it whenever the same base image and prerequisite command is used in a run command. Then you could avoid doing unnecessary init in the container itself and keep using silly little scripts without having to push reusable images and keep them up to date yourself. | ||
| ▲ | antihero 2 hours ago | parent [-] | |
You just set up CI/CD on GitHub and have it dump an image into ghcr it’s trivial. Claude excells at seeing up workflows. I don't know why anyone bothers with Dockerhub at all really. | ||