What happens with `RUN apt-get update` on a separate line from `apt-get install`?
IntermediateConceptDockerfile Instructions & Builds
Answer
The update layer is cached, so a later install line change uses stale package indexes and may fail with 404 on package URLs. Always chain them in one RUN: apt-get update && apt-get install -y ....