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