Base image not pinned (ARCH10002)
Esta página aún no está disponible en tu idioma.
Key config.docker.unpinned-base-image · Severity warning · Category quality
Without a version the base image changes under the build without anyone deciding it: two builds of the same commit can differ, and a broken or compromised upstream release reaches production on the next build.
Incorrect
Section titled “Incorrect”FROM python:latestWORKDIR /appCOPY . .USER 10001CMD ["python", "main.py"]Correct
Section titled “Correct”FROM python:3.12.7-slimWORKDIR /appCOPY . .USER 10001CMD ["python", "main.py"]Pin a version tag (image:1.2.3) or a digest (image@sha256:...), and move it on purpose.
Not flagged
Section titled “Not flagged”- An image pinned by digest,
scratch, an earlier stage of the same Dockerfile, and an image given by a build argument (FROM ${BASE}).