The problem I’m encountering is that although my application seems to start successfully, Render doesn’t recognize that the app is running. After a few minutes, I receive a notification indicating that the deployment has failed.
If anyone has experience with similar problems or can offer guidance on how to troubleshoot this issue, I would greatly appreciate your help.
FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY ["Sparkle.Api/Sparkle.Api.csproj", "Sparkle.Api/"] COPY ["Sparkle.Transfer/Sparkle.Transfer.csproj", "Sparkle.Transfer/"] COPY ["SparkleRegressor.Client/SparkleRegressor.Client.csproj", "SparkleRegressor.Client/"] RUN dotnet restore "Sparkle.Api/Sparkle.Api.csproj" COPY . . WORKDIR "/src/Sparkle.Api" RUN dotnet build "Sparkle.Api.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "Sparkle.Api.csproj" -c Release -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . RUN ls -R /app ENTRYPOINT ["dotnet", "Sparkle.Api.dll"]