chore: add Dockerfiles for Api and Worker

- Api: mcr.microsoft.com/dotnet/aspnet:10.0 base, exposes 8080
- Worker: mcr.microsoft.com/dotnet/runtime:10.0 base (no HTTP stack)
- Both use multi-stage build with layer-cached csproj restore
- .dockerignore excludes bin/obj/git/IDE folders
- Dockerfiles added to /docker/ solution folder

Ref: IT-628

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Anatolii Grynchuk
2026-05-02 01:33:22 +03:00
parent ae724e4aee
commit 6a31f380a2
4 changed files with 73 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@
<Folder Name="/docker/">
<File Path="docker/environments/docker-compose.yml" />
<File Path="docker/environments/docker-compose.Development.yml" />
<File Path="HrynCo.NotificationService.Api/Dockerfile" />
<File Path="HrynCo.NotificationService.Worker/Dockerfile" />
</Folder>
<Project Path="HrynCo.NotificationService.Api.IntegrationTests/HrynCo.NotificationService.Api.IntegrationTests.csproj" />
<Project Path="HrynCo.NotificationService.Api/HrynCo.NotificationService.Api.csproj" />