From 98873543e965984ca2642269dbb5901893c4ebe9 Mon Sep 17 00:00:00 2001 From: dave Date: Thu, 14 Mar 2024 17:05:35 +0100 Subject: [PATCH] ps --- src/HeartTrackAPI/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HeartTrackAPI/Dockerfile b/src/HeartTrackAPI/Dockerfile index c04e47c..88c9d79 100644 --- a/src/HeartTrackAPI/Dockerfile +++ b/src/HeartTrackAPI/Dockerfile @@ -25,7 +25,9 @@ RUN echo $DOTNET_ROOT RUN echo SHOULDDOTNET_ROOT RUN ls -RUN dotnet tool install --global dotnet-ef +RUN dotnet tool install --global dotnet-ef --version 8.0 + +ENV PATH="${PATH}:/root/.dotnet/tools" # 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