4 ms·
> which means when you build the container, you get whatever version of foobar happens to currently be in the repository that your base image points to. Well n
by Izkata 3y ago
> which means when you build the container, you get whatever version of foobar happens to currently be in the repository that your base image points to.
Well no, the layer won't be rebuilt if you already have it from yesterday or last week and that + previous lines in the Dockerfile didn't change. So yours would still be using the old version, but someone new to the project would get the most up-to-date version. Have to remember to skip the cache to get the most recent version.
- coldtea 3y ago>Well no, the layer won't be rebuilt if you already have it from yesterday or last week and that + previous lines in the Dockerfile didn't change. When people say it needs to be reproducible, they don't mean "reproducible in the same host machine, with the same cache lying around".