From 3c302d2f0eea601f459b9799e574916d8c416aa6 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Sun, 25 Jun 2023 21:05:27 -0700 Subject: [PATCH] pinned the ef version in Dockerfile --- .DockerIgnore | 5 +++-- Dockerfile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.DockerIgnore b/.DockerIgnore index 07c6bb4..eb22bc9 100644 --- a/.DockerIgnore +++ b/.DockerIgnore @@ -1,3 +1,4 @@ appsettings.json -**/bin/ -**/obj/ \ No newline at end of file +**/bin/** +**/obj/** +**/efbundle \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 7427653..2a5abbc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,7 +17,7 @@ RUN dotnet publish -o build RUN ls build FROM build as ef -RUN dotnet tool install dotnet-ef --tool-path /usr/bin +RUN dotnet tool install dotnet-ef --tool-path /usr/bin --version 7.0.8 RUN dotnet ef migrations bundle --project "Newsbot.Collector.Database" FROM mcr.microsoft.com/dotnet/aspnet:7.0.3 as app