Skip to content

Commit

Permalink
Add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kaedei committed Jun 24, 2020
1 parent 7ef1e8c commit a0ac844
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ResourceMonitor/ResourceMonitor/.dockerignore
@@ -0,0 +1 @@
appsettings.*.json
5 changes: 5 additions & 0 deletions ResourceMonitor/ResourceMonitor/Dockerfile
@@ -0,0 +1,5 @@
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
WORKDIR /app
COPY . /app
EXPOSE 80
ENTRYPOINT ["dotnet", "ResourceMonitor.dll"]
17 changes: 17 additions & 0 deletions ResourceMonitor/ResourceMonitor/ResourceMonitor.csproj
Expand Up @@ -17,5 +17,22 @@
<PackageReference Include="Transmission.API.RPC" Version="2.1.2" />
</ItemGroup>

<ItemGroup>
<None Update="Dockerfile">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update=".dockerignore">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>

<ItemGroup>
<Content Update="appsettings.Development.json">
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>


</Project>
2 changes: 1 addition & 1 deletion ResourceMonitor/ResourceMonitor/appsettings.json
@@ -1,5 +1,5 @@
{
"LogDetails": false,
"LogDetails": "false",
"AllowedHosts": "*",
"SyncPeriod": 10,
"CheckPeriod": 15,
Expand Down

0 comments on commit a0ac844

Please sign in to comment.