This is a sample projcet to showcase, how a minimal API in .Net 6 is set up. For data storage during runtime, EF Core with an In Memory Database is used
In order to run the API inside of a docker container after you have cloned the project, you need to build the image first:
- First you need to change into the
src/
directory of the project with your Terminal - Run the following command:
docker build . -t pizza-store:latest
Once the build has finished you can run the container with the command:
docker run -i --rm -p 8080:80 pizza-store:latest
Now the app should be running and you can call the API via http://localhost:8080/ or use the Swagger UI via http://localhost:8080/swagger/