diff --git a/pkg/build/daggerbuild/backend/builder.go b/pkg/build/daggerbuild/backend/builder.go index 9a27c60a8c0..4b49efa1ba9 100644 --- a/pkg/build/daggerbuild/backend/builder.go +++ b/pkg/build/daggerbuild/backend/builder.go @@ -69,7 +69,11 @@ func ViceroyContainer( container := d.Container(containerOpts).From(fmt.Sprintf("rfratto/viceroy:%s", viceroyVersion)) // Install Go manually, and install make, git, and curl from the package manager. - container = container.WithExec([]string{"apt-get", "update"}). + container = container. + WithExec([]string{"dpkg", "--remove-architecture", "ppc64el"}). + WithExec([]string{"dpkg", "--remove-architecture", "s390x"}). + WithExec([]string{"dpkg", "--remove-architecture", "armel"}). + WithExec([]string{"apt-get", "update", "-yq"}). WithExec([]string{"apt-get", "install", "-yq", "curl", "make", "git"}). WithExec([]string{"/bin/sh", "-c", fmt.Sprintf("curl -L %s | tar -C /usr/local -xzf -", goURL)}). WithEnvVariable("PATH", "/bin:/usr/bin:/usr/local/bin:/usr/local/go/bin:/usr/osxcross/bin")