| ▲ | AntiUSAbah 2 hours ago | |||||||||||||||||||||||||||||||||||||
So if i have a docker container which needs a handful of packages, you would handle it how? I'm handling it by using a slim debian or ubuntu, then using apt to install these packages with necessary dependencies. For everything easy, like one basic binary, I use the most minimal image but as soon as it gets just a little bit annoying to set it up and keep it maintained, i start using apt and a nightly build of the image. | ||||||||||||||||||||||||||||||||||||||
| ▲ | zamadatix 12 minutes ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||
The same way you may require something like cmake as a build dependency but not have it be part of the resulting binary - separate build time and run time dependencies so you only distribute the relevant ones. | ||||||||||||||||||||||||||||||||||||||
| ▲ | klodolph 40 minutes ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||
IMO—package manager outside the container. You just want the packages inside the container; the manager can sit outside and install packages into the container. | ||||||||||||||||||||||||||||||||||||||
| ▲ | chaps an hour ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||
Your question feels insane to me for production environments. Why aren't you doing a version cutoff of your packages and either pulling them from some network/local cache or baking them into your images? | ||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||