Skip to content

Commit

Permalink
Working docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
multimeric committed Jul 5, 2019
1 parent eb49c17 commit 6676af2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 19 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM mcr.microsoft.com/dotnet/core/sdk:2.2
WORKDIR /app
RUN apt-get update && apt-get install libunwind8
COPY . ./
RUN dotnet publish -c Release --runtime linux-x64 -o out
RUN cp bionitio/bin/Release/netcoreapp2.0/linux-x64/bionitio /usr/bin/
RUN dotnet publish -c Release --self-contained false -r linux-x64 -o out
RUN ln -s $(realpath bionitio/out/bionitio) /usr/local/bin/
7 changes: 5 additions & 2 deletions bionitio/bionitio.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseAppHost>true</UseAppHost>
<RuntimeIdentifiers>linux-x64;win-x64;osx-x64</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.CommandlineUtils" Version="1.1.1" />
Expand Down
32 changes: 17 additions & 15 deletions test/test.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<IsPackable>false</IsPackable>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />
<PackageReference Include="MSTest.TestAdapter" Version="1.1.18" />
<PackageReference Include="MSTest.TestFramework" Version="1.1.18" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\bionitio\bionitio.csproj" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp2.2</TargetFramework>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<PlatformTarget>AnyCPU</PlatformTarget>
<UseAppHost>true</UseAppHost>
<RuntimeIdentifiers>linux-x64;win-x64;osx-x64</RuntimeIdentifiers>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.3.0-preview-20170628-02" />
<PackageReference Include="MSTest.TestAdapter" Version="1.1.18" />
<PackageReference Include="MSTest.TestFramework" Version="1.1.18" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\bionitio\bionitio.csproj" />
</ItemGroup>
</Project>

0 comments on commit 6676af2

Please sign in to comment.