Need help with the deployment of my asp.NET core api
I'm developing a RESTApi and a websocket for a mobile app using rider. I need a mysql database, so i chose to deploy it on a container with phpmyadmin.
Now that my mysql container is working I wanted to add the image of my api within it
I tried to accept the certificats on my computer by using this command:
dotnet dev-certs https --trust
, but then i realised that it was useless because of docker.
I also tried running it on release using visual studio and the app started but it was using the 7115 port instead of the 8080 one. I then tried to restart it from rider and i got the same error as previously.
This error block me from adding it to my container.
Please find the error, my dockerfile, and the program.cs file under.
Thank you in advance
PS - That dockerfile come from my deployment course in school. I understand everything in it but i may have done an error somewhere.2 Replies