79139777

Date: 2024-10-30 05:47:27
Score: 1.5
Natty:
Report link

I am happy to report that I have fixed my issue. Here's the solution in case someone faces the same issue -

I added these two in dockerfile

# Set environment variable for the listening port, as required by Cloud Run
ENV ASPNETCORE_URLS=http://+:8080

ENV PORT 8080

FYI - I already had EXPOSE 8080 and yet, the above two lines were required. This makes sense, as the error suggested something about PORT 8080. However, I still do not understand why these two lines were required as it was working fine before. I wonder if it is because of the dotnet 9 upgrade. Let me know if anyone has a clue.

Cheers!

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Komal R