This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/ | |
# 8.0-preview-alpine works too | |
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build | |
ARG TARGETARCH | |
WORKDIR /source | |
# copy csproj and restore as distinct layers | |
COPY *.csproj . | |
RUN dotnet restore -a $TARGETARCH |