fullstackhero / dotnet-starter-kit

Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
https://fullstackhero.net/dotnet-webapi-boilerplate/
MIT License
5.21k stars 1.56k forks source link

[BUG] New API returns 404 from docker container #875

Closed rcholic closed 5 months ago

rcholic commented 1 year ago

Describe the bug I created a new Http Get-based API inside the UsersController.cs and built/run the service in docker container using the provided docker-compose.postgresql.yml file.

When I test the new API served from docker container, I get 404 response. I suspect the built docker image/container does not have my new code.

Screenshot 2023-07-15 at 5 27 44 PM

btw: build and run the docker image in Ubuntu.

iammukeshm commented 5 months ago

You might have to point the image to your published image. By default, the docker compose files are designed to pull the default image from docker hub, not your actual application code.