Enable using docker build --platform
switch (easily)
#30369
Labels
Area-NetSDK
good first issue
Issues that would be a good fit for someone new to the repository. Narrow in scope, well-defined.
help wanted
Issues that we would accept external contributions on. Also known as up-for-grabs.
User Story
A single user-facing feature. Can be grouped under an epic.
Milestone
This is a specific aspect of: dotnet/dotnet-docker#4388
We constructed a "hero Dockerfile" that we want to offer users, but it doesn't work, sadly. There are multiple points of incompatibility that we need to resolve. See the other issue for more context.
For the SDK/CLI, it comes down to Docker's and .NET's syntax/symbols for architecture not matching.
Docker archs:
amd64
arm64
arm
.NET RID archs:
x64
arm64
arm
The archs mostly match across the two systems, except for the first one. We need the RID in
-r linux/am64
to be translated tolinux/x64
. No other change is needed (at least that we've discovered).We only need this for Linux, for two reasons:
The text was updated successfully, but these errors were encountered: