FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:10.0 AS build ARG TARGETARCH WORKDIR /src COPY . . RUN arch=$([ "$TARGETARCH" = "amd64" ] && echo "x64" || echo "$TARGETARCH") && \ dotnet publish Azaion.Missions.JwksMock.csproj -c Release -o /app --os linux --arch $arch FROM mcr.microsoft.com/dotnet/aspnet:10.0 WORKDIR /app COPY --from=build /app . # wget is required by docker-compose.test.yml's healthcheck. The aspnet base # image does not ship it; install with apt before stripping the cache. RUN apt-get update \ && apt-get install -y --no-install-recommends wget \ && rm -rf /var/lib/apt/lists/* EXPOSE 8443 ENTRYPOINT ["dotnet", "Azaion.Missions.JwksMock.dll"]