Initial commit

This commit is contained in:
Sergey Nazarov 2024-03-20 00:02:35 +04:00
parent 98f56ed212
commit 5189c3c4b8
15 changed files with 31 additions and 31 deletions

View File

@ -8,11 +8,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nocr.TextMatcher.Core", "src\Nocr.TextMatcher.Core\Nocr.TextMatcher.Core.csproj", "{3E87693C-78DF-469B-BAA3-CB103F8EA80B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nocr.TelegramListener.Core", "src\Nocr.TelegramListener.Core\Nocr.TelegramListener.Core.csproj", "{3E87693C-78DF-469B-BAA3-CB103F8EA80B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nocr.TextMatcher.AppServices", "src\Nocr.TextMatcher.AppServices\Nocr.TextMatcher.AppServices.csproj", "{5CCB085C-860A-4C4C-907C-10183ABCEA9B}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nocr.TelegramListener.AppServices", "src\Nocr.TelegramListener.AppServices\Nocr.TelegramListener.AppServices.csproj", "{5CCB085C-860A-4C4C-907C-10183ABCEA9B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nocr.TextMatcher.Host", "src\Nocr.TextMatcher.Host\Nocr.TextMatcher.Host.csproj", "{58D5C9FD-75A9-4FFB-9FBD-BE8E9FCE3016}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nocr.TelegramListener.Host", "src\Nocr.TelegramListener.Host\Nocr.TelegramListener.Host.csproj", "{58D5C9FD-75A9-4FFB-9FBD-BE8E9FCE3016}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution

View File

@ -5,7 +5,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Nocr.TextMatcher.Core\Nocr.TextMatcher.Core.csproj" />
<ProjectReference Include="..\Nocr.TelegramListener.Core\Nocr.TelegramListener.Core.csproj" />
</ItemGroup>
</Project>

View File

@ -1,4 +1,4 @@
namespace Nocr.TextMatcher.Core.Dates;
namespace Nocr.TelegramListener.Core.Dates;
public sealed class DefaultCurrentDateProvider : ICurrentDateProvider
{

View File

@ -1,4 +1,4 @@
namespace Nocr.TextMatcher.Core.Dates;
namespace Nocr.TelegramListener.Core.Dates;
public interface ICurrentDateProvider
{

View File

@ -0,0 +1,20 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore "src/Nocr.TelegramListener.Host/Nocr.TelegramListener.Host.csproj"
WORKDIR "/src/src/Nocr.TelegramListener.Host"
RUN dotnet build "Nocr.TelegramListener.Host.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Nocr.TelegramListener.Host.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Nocr.TelegramListener.Host.dll"]

View File

@ -1,6 +1,6 @@
using Serilog;
namespace Nocr.TextMatcher.Host.Infrastructure;
namespace Nocr.TelegramListener.Host.Infrastructure;
public class HostBuilderFactory<TStartup> where TStartup : class
{

View File

@ -1,7 +1,7 @@
using Nocr.TelegramListener.Core.Dates;
using Nocr.TextMatcher.AppServices;
using Nocr.TextMatcher.Core.Dates;
namespace Nocr.TextMatcher.Host.Infrastructure;
namespace Nocr.TelegramListener.Host.Infrastructure;
public class Startup
{

View File

@ -9,7 +9,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Nocr.TextMatcher.AppServices\Nocr.TextMatcher.AppServices.csproj" />
<ProjectReference Include="..\Nocr.TelegramListener.AppServices\Nocr.TelegramListener.AppServices.csproj" />
</ItemGroup>
<ItemGroup>

View File

@ -1,4 +1,4 @@
using Nocr.TextMatcher.Host.Infrastructure;
using Nocr.TelegramListener.Host.Infrastructure;
var host = new HostBuilderFactory<Startup>()
.CreateHostBuilder(args)

View File

@ -1,20 +0,0 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore "src/Nocr.TextMatcher.Host/Nocr.TextMatcher.Host.csproj"
WORKDIR "/src/src/Nocr.TextMatcher.Host"
RUN dotnet build "Nocr.TextMatcher.Host.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Nocr.TextMatcher.Host.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Nocr.TextMatcher.Host.dll"]