From ea0a88bccef3b359cf429a7129fc5c791cc24ad2 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 14 Mar 2024 16:58:16 +0100 Subject: [PATCH] add dotnet tool install --global dotnet-ef --- src/HeartTrackAPI/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HeartTrackAPI/Dockerfile b/src/HeartTrackAPI/Dockerfile index 6514b7e..9b2ca7a 100644 --- a/src/HeartTrackAPI/Dockerfile +++ b/src/HeartTrackAPI/Dockerfile @@ -22,7 +22,7 @@ COPY ["StubbedContextLib/StubbedContextLib.csproj", "StubbedContextLib/"] RUN dotnet restore "HeartTrackAPI/HeartTrackAPI.csproj" COPY . . RUN ls - +RUN dotnet tool install --global dotnet-ef # Add the migrations RUN dotnet ef migrations add --project StubbedContextLib/ --startup-project HeartTrackAPI/ --context StubbedContextLib.TrainingStubbedContext --configuration Debug Initial --output-dir Migrations # Update the database