dockersamples / example-voting-app

Example distributed app composed of multiple containers for Docker, Compose, Swarm, and Kubernetes
Apache License 2.0
4.75k stars 10.99k forks source link

Simplify .NET multi-platform Dockerfile #301

Closed lbussell closed 1 year ago

lbussell commented 1 year ago

Since .NET 7.0.300, the new -a/--arch argument is supported that accepts the same formatting as Docker's $TARGETARCH. This greatly simplifies the restore and build commands in this sample.

See @richlander's blog post and https://github.com/dotnet/sdk/issues/30369 for more context.

mikesir87 commented 1 year ago

Wow! Somehow missed this PR, so apologies on the slow response. Thanks for the update and for sharing the new capabilities. Super cool! We'll go ahead and merge this in. Thanks again!