| @@ -1,2 +1,25 @@ | |||
| # Testcontainers | |||
| ## Etape 1 - Installer Docker | |||
| Le plus simple sur Linux c’est d’installer Docker Desktop | |||
| ## Etape 2- Création de l’api Dotnet | |||
| ```console | |||
| dotnet new webapi -n docker-dotnetcore-api | |||
| ``` | |||
| ## Etape 3 – Démarrer l’application | |||
| ```console | |||
| cd docker-dotnetcore-api | |||
| dotnet run | |||
| ``` | |||
| L'application est accessible depuis l'url | |||
| ## Etape 4-Créer l’image Docker | |||
| ```console | |||
| docker build -t ecolocale/my-api . | |||
| ``` | |||