From b44b091d25b77be5da483646f685f5d129c68f9f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 8 Dec 2022 16:43:41 +0100 Subject: [PATCH] develop/scan-images: add syntax directives to dockerfile examples Signed-off-by: Sebastiaan van Stijn --- develop/scan-images/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/develop/scan-images/index.md b/develop/scan-images/index.md index d44cd5bef4..1d623bf0ff 100644 --- a/develop/scan-images/index.md +++ b/develop/scan-images/index.md @@ -100,6 +100,7 @@ A Docker image is built from a Dockerfile. A Dockerfile contains a set of instr Building your image is a snapshot of that image, at that moment in time. When you depend on a base image without a tag, you’ll get a different base image every time you rebuild. Also, when you install packages using a package installer, rebuilding can change the image drastically. For example, a Dockerfile containing the following entries can potentially have a different binary with every rebuild. ```dockerfile +# syntax=docker/dockerfile:1 FROM ubuntu:latest RUN apt-get -y update && apt-get install -y python ```