3 ms·
Eh, that’s a heavy handed and not great way of ensuring reproducibility. The smart way of doing it would be to: 1. Use the direct SHA reference to the upstrea
by orf 5y ago
Eh, that’s a heavy handed and not great way of ensuring reproducibility.
The smart way of doing it would be to:
1. Use the direct SHA reference to the upstream “Ubuntu” image you want.
2. Have a system (Dependabot, renovate) to update that periodically
3. When building, use “cache from” and “cache to” to push the image cache somewhere you can access
And… that’s it. You’ll be able to rebuild any image that is still cached in your cache registry. Just re-use a older upstream Ubuntu SHA reference and change some code, and the apt commands will be cached.