.NET Docker: The application starts, but Render doesn't recognize that the deployment was successful

Hello everyone,

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.

Docker File:

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"]

Hi,

I’ve replied to the ticket you also opened. Let’s keep the conversation in one place (on the ticket). Then you can update this post when we get to the solution.

Alan

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.