From 0df5ab9526d245b57ffc7c0e0b318462508f77ed Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Tue, 23 Feb 2021 16:25:31 +1100 Subject: [PATCH] Revert csporj changes and copy file in Dockerfile if exists. --- src/Northwind/Dockerfile | 1 + src/Northwind/Northwind.csproj | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Northwind/Dockerfile b/src/Northwind/Dockerfile index 46079b4..c816ac3 100644 --- a/src/Northwind/Dockerfile +++ b/src/Northwind/Dockerfile @@ -1,4 +1,5 @@ FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime WORKDIR /app COPY publish/* ./ +RUN test -e ./Northwind.sqlite && mkdir -p App_Data && mv ./Northwind.sqlite ./App_Data/Northwind.sqlite ENTRYPOINT ["dotnet", "Northwind.dll"] diff --git a/src/Northwind/Northwind.csproj b/src/Northwind/Northwind.csproj index e896479..515b21d 100755 --- a/src/Northwind/Northwind.csproj +++ b/src/Northwind/Northwind.csproj @@ -9,7 +9,9 @@ - + + PreserveNewest +