Skip to content

Commit

Permalink
Revert csporj changes and copy file in Dockerfile if exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Layoric committed Feb 23, 2021
1 parent 8f80a79 commit 0df5ab9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Northwind/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
4 changes: 3 additions & 1 deletion src/Northwind/Northwind.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
</PropertyGroup>

<ItemGroup>
<Content Include="App_Data\**\*" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
<None Update="wwwroot\**\*;App_Data\**\*">
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
</None>
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 0df5ab9

Please sign in to comment.