Skip to content

Commit 747d68f

Browse files
committed
Lock tonistiigi/xx by digest (immutable)
Signed-off-by: Marco Franssen <[email protected]>
1 parent 6b56a9a commit 747d68f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile.scratch

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ RUN --mount=type=cache,target=/go/pkg/mod go mod download
1010
COPY . .
1111

1212
# xx is a helper for cross-compilation
13-
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.1.2 AS xx
13+
# when bumping to a new version analyze the new version for security issues
14+
# then use crane to lookup the digest of that version so we are immutable
15+
# crane digest tonistiigi/xx:1.1.2
16+
FROM --platform=$BUILDPLATFORM tonistiigi/xx@sha256:9dde7edeb9e4a957ce78be9f8c0fbabe0129bf5126933cd3574888f443731cda AS xx
1417

1518
FROM --platform=${BUILDPLATFORM} base as builder
1619
ARG TARGETPLATFORM

0 commit comments

Comments
 (0)