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.

Home Page:https://fullstackhero.net/dotnet-webapi-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] New API returns 404 from docker container

rcholic opened this issue · comments

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.

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.