Open tyb-dev opened 1 year ago
I am wondering if this is the same problem causing me difficulties related to multi-architecture builds. If I try to do this in my Dockerfile, I'd expect to get the $BUILDPLATFORM from docker, similar to how it appears via the docker CLI.
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-env
According to the docs, that only appears with buildkit. https://docs.docker.com/reference/dockerfile/#automatic-platform-args-in-the-global-scope
Any ETA on a fix for this? I would love to be able to use buildKit.
Output of
dotnet --info
:What version of Docker.DotNet?:
Steps to reproduce the issue: Dockerfile
Code (ConsoleApp calling BuildImageFromDockerfileAsync)
What actually happened?:
What did you expect to happen?: Image is created equivalent to doing
docker build
on the command line.Additional information: https://github.com/moby/moby/issues/41711#issuecomment-733281140