diff --git a/Dockerfile b/Dockerfile index 20d0771..ceeca29 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/bionitio/bionitio.csproj b/bionitio/bionitio.csproj index 02fbff6..56392e9 100644 --- a/bionitio/bionitio.csproj +++ b/bionitio/bionitio.csproj @@ -1,8 +1,11 @@ - + Exe - netcoreapp2.0 + netcoreapp2.2 true + AnyCPU + true + linux-x64;win-x64;osx-x64 diff --git a/test/test.csproj b/test/test.csproj index ae93ad0..8370dd9 100644 --- a/test/test.csproj +++ b/test/test.csproj @@ -1,15 +1,17 @@ - - - netcoreapp2.0 - false - true - - - - - - - - - - + + + netcoreapp2.2 + true + AnyCPU + true + linux-x64;win-x64;osx-x64 + + + + + + + + + +