From 2d9b5908c19db81d7ae170d47d97216b25441aa7 Mon Sep 17 00:00:00 2001 From: Dmitry Sharshakov Date: Fri, 17 Jan 2025 15:39:42 +0100 Subject: [PATCH] fix: hint platform for stage2 and 3 Ref: https://github.com/moby/buildkit/pull/5670 --- packages/bootstrap/stage2/Containerfile | 3 ++- packages/bootstrap/stage3/Containerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bootstrap/stage2/Containerfile b/packages/bootstrap/stage2/Containerfile index ff42ef80..113da423 100644 --- a/packages/bootstrap/stage2/Containerfile +++ b/packages/bootstrap/stage2/Containerfile @@ -1,4 +1,5 @@ -FROM scratch AS build +# syntax=ghcr.io/dsseng/docker/dockerfile-upstream:scratch-arch@sha256:d730eed2380ca40dc59272671a916482fb71f4895b596f918013de962055e3c9 +FROM --platform=linux/386 scratch AS build ARG GCC_SOURCE ARG GCC_VERSION ARG LINUX_SOURCE diff --git a/packages/bootstrap/stage3/Containerfile b/packages/bootstrap/stage3/Containerfile index 8387127a..542ce832 100644 --- a/packages/bootstrap/stage3/Containerfile +++ b/packages/bootstrap/stage3/Containerfile @@ -1,4 +1,5 @@ -FROM scratch AS build +# syntax=ghcr.io/dsseng/docker/dockerfile-upstream:scratch-arch@sha256:d730eed2380ca40dc59272671a916482fb71f4895b596f918013de962055e3c9 +FROM --platform=linux/386 scratch AS build ARG GCC_SOURCE ARG GCC_VERSION ARG LINUX_SOURCE