logoalt Hacker News

dev_l1x_betoday at 8:05 AM2 repliesview on HN

All docker containers should have been like that. apt-get update in a docker build step is an anti pattern.


Replies

DuncanCoffeetoday at 8:26 AM

I know it's an anti-pattern, but what is the alternative if you need to install some software? Pulling its tagged source code, gcc and compile everything?

show 6 replies
malikoliviertoday at 9:00 AM

This is to solve such issues that I am using and running StableBuild.

It is a managed service that keeps a cached copy of your dependencies at a specific time. You can pin your dependencies within a Dockerfile and have reproducible docker images.

show 1 reply