medium · dockerfile/unpinned-base-image-tag
Unpinned base image tag
Using :latest or an implicit latest tag makes builds non-reproducible.
Why it breaks the cache
The image behind a moving tag can change without notice.
Bad Dockerfile
FROM node:latest
Good Dockerfile
FROM node:18.20.0
CLI
layerlint rules explain unpinned-base-image-tag