File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:7.0 as dotnet-build
1+ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:7.0 as dotnet-build
2+ ARG TARGETPLATFORM
3+ ARG BUILDPLATFORM
24WORKDIR /src
35COPY . .
46RUN dotnet --info
@@ -8,7 +10,9 @@ RUN dotnet build --configuration Release --no-restore
810# RUN dotnet test --configuration Release CSharpRepl.Tests/CSharpRepl.Tests.csproj --no-build --no-restore
911RUN dotnet publish --configuration Release CSharpRepl/CSharpRepl.csproj --no-build --no-restore -o /app
1012
11- FROM mcr.microsoft.com/dotnet/aspnet:7.0
13+ FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/aspnet:7.0
14+ ARG TARGETPLATFORM
15+ ARG BUILDPLATFORM
1216WORKDIR /app
1317COPY --from=dotnet-build /app .
1418ENTRYPOINT ["bash" , "start.sh" ]
You can’t perform that action at this time.
0 commit comments