Skip to content

Commit 0df5ab9

Browse files
committed
Revert csporj changes and copy file in Dockerfile if exists.
1 parent 8f80a79 commit 0df5ab9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Northwind/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS runtime
22
WORKDIR /app
33
COPY publish/* ./
4+
RUN test -e ./Northwind.sqlite && mkdir -p App_Data && mv ./Northwind.sqlite ./App_Data/Northwind.sqlite
45
ENTRYPOINT ["dotnet", "Northwind.dll"]

src/Northwind/Northwind.csproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
</PropertyGroup>
1010

1111
<ItemGroup>
12-
<Content Include="App_Data\**\*" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
12+
<None Update="wwwroot\**\*;App_Data\**\*">
13+
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
14+
</None>
1315
</ItemGroup>
1416

1517
<ItemGroup>

0 commit comments

Comments
 (0)