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