You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to debug why my backgroundworker shuts down after some and to debug that I am installing dotnet monitor to same container where my app is running. I start the dotnet monitor with: C:\Users\ContainerUser\.dotnet\tools\dotnet-monitor.exe collect --urls http://0.0.0.0:52323 --metricUrls http://0.0.0.0:52325 --no-auth
And I can connect to the swagger page after this. However the problem starts when trying to execute any functionalities through swagger. For example http://host:52325/processes' just responses with 404 Not Found. What am I missing?
My dockerfile looks like this:
FROM mcr.microsoft.com/dotnet/sdk:8.0-nanoserver-1809 as base
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0-nanoserver-1809 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["myproject.csproj", "."]
RUN dotnet restore "./myproject.csproj"
COPY . .
WORKDIR "/src/."
RUN dotnet build "./myproject.csproj" -c %BUILD_CONFIGURATION% -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./myproject.csproj" -c %BUILD_CONFIGURATION% -o /app/publish /p:UseAppHost=false
FROM base AS final
ENV DOTNET_DiagnosticPorts="dotnet-monitor-pipe,nosuspend"
RUN dotnet tool install --global dotnet-monitor --version 8.0.0
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "myproject.dll"]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to debug why my backgroundworker shuts down after some and to debug that I am installing dotnet monitor to same container where my app is running. I start the dotnet monitor with:
C:\Users\ContainerUser\.dotnet\tools\dotnet-monitor.exe collect --urls http://0.0.0.0:52323 --metricUrls http://0.0.0.0:52325 --no-auth
And I can connect to the swagger page after this. However the problem starts when trying to execute any functionalities through swagger. For example http://host:52325/processes' just responses with 404 Not Found. What am I missing?
My dockerfile looks like this:
My config:
Beta Was this translation helpful? Give feedback.
All reactions