mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
test self-contained deployment
This commit is contained in:
parent
5c7d8af952
commit
5b26871143
2 changed files with 18 additions and 9 deletions
|
|
@ -2,8 +2,8 @@
|
|||
# Command: docker build -f src/FilterLists.Agent/Dockerfile .
|
||||
|
||||
# init base
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime:2.2-alpine as base
|
||||
ENTRYPOINT ["dotnet", "FilterLists.Agent.dll"]
|
||||
FROM mcr.microsoft.com/dotnet/core/runtime-deps:2.2-alpine as base
|
||||
ENTRYPOINT ["./FilterLists.Agent"]
|
||||
WORKDIR /app
|
||||
|
||||
# init build
|
||||
|
|
@ -16,7 +16,8 @@ RUN dotnet restore
|
|||
|
||||
# build
|
||||
COPY src/FilterLists.Agent/. .
|
||||
RUN dotnet build -c Release --no-restore
|
||||
RUN dotnet add package ILLink.Tasks -v 0.1.5-preview-1841731 -s https://dotnet.myget.org/F/dotnet-core/api/v3/index.json
|
||||
RUN dotnet build -c Release -r linux-musl-x64 -o out --no-restore
|
||||
|
||||
# init Agent.Tests
|
||||
FROM build AS test-agent
|
||||
|
|
@ -33,7 +34,7 @@ RUN dotnet build -c Release --no-restore
|
|||
|
||||
# publish
|
||||
FROM build AS publish
|
||||
RUN dotnet publish -c Release -o out --no-restore --no-build
|
||||
RUN dotnet publish -c Release -r linux-musl-x64 -o out --no-restore --no-build
|
||||
|
||||
# final
|
||||
FROM base as final
|
||||
|
|
|
|||
|
|
@ -1,11 +1,18 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>netcoreapp2.2</TargetFramework>
|
||||
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<RuntimeIdentifier>linux-musl-x64</RuntimeIdentifier>
|
||||
<ServerGarbageCollection>false</ServerGarbageCollection>
|
||||
<DockerDebuggeeArguments>--additionalProbingPath /root/.nuget/fallbackpackages2 --additionalProbingPath /root/.nuget/fallbackpackages "bin/$(Configuration)/$(TargetFramework)/$(AssemblyName).dll" -a -v</DockerDebuggeeArguments>
|
||||
<DockerDebuggeeProgram>/usr/bin/dotnet</DockerDebuggeeProgram>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Authors>Collin M. Barrett</Authors>
|
||||
<Company>Collin M. Barrett</Company>
|
||||
<Product>FilterLists</Product>
|
||||
|
|
@ -16,9 +23,6 @@
|
|||
<RepositoryUrl>https://github.com/collinbarrett/FilterLists</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageProjectUrl>https://filterlists.com/</PackageProjectUrl>
|
||||
<ServerGarbageCollection>false</ServerGarbageCollection>
|
||||
<DockerDebuggeeArguments>--additionalProbingPath /root/.nuget/fallbackpackages2 --additionalProbingPath /root/.nuget/fallbackpackages "bin/$(Configuration)/$(TargetFramework)/$(AssemblyName).dll" -a -v</DockerDebuggeeArguments>
|
||||
<DockerDebuggeeProgram>/usr/bin/dotnet</DockerDebuggeeProgram>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
|
|
@ -29,6 +33,10 @@
|
|||
<CodeAnalysisRuleSet>FilterLists.Agent.ruleset</CodeAnalysisRuleSet>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<RuntimeHostConfigurationOption Include="System.Globalization.Invariant" Value="true" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommandLineParser" Version="2.5.0" />
|
||||
<PackageReference Include="LibGit2Sharp" Version="0.26.0" />
|
||||
|
|
|
|||
Loading…
Reference in a new issue