From 6bf7363b8e1fb6b69fde131031ee1f5f5c1136df Mon Sep 17 00:00:00 2001 From: Glowstudent <55334764+Glowstudent777@users.noreply.github.com> Date: Wed, 5 Jul 2023 11:57:14 -0500 Subject: [PATCH] Update Dockerfile --- Bot/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Bot/Dockerfile b/Bot/Dockerfile index fc8e8af..f219f56 100644 --- a/Bot/Dockerfile +++ b/Bot/Dockerfile @@ -11,5 +11,8 @@ RUN dotnet restore # Build the project RUN dotnet build --no-restore +# Apply Entity Framework Core migrations +RUN dotnet ef database update --no-build + # Run the project CMD ["dotnet", "run", "--no-build", "--project", "Bot"]