|
FROM
mcr.microsoft.com/dotnet/aspnet:7.0 AS base
2
WORKDIRNET-Microservices-Architecture-for-Containerized-NET-Applications
FROM
mcr.microsoft.com/dotnet/aspnet:7.0 AS base
2
WORKDIR
/app
3
EXPOSE
80
4
5
FROM
mcr.microsoft.com/dotnet/sdk:7.0 AS build
6
WORKDIR
/src
7
COPY
src/Services/Catalog/Catalog.API/Catalog.API.csproj …
8
COPY
src/BuildingBlocks/HealthChecks/src/Microsoft.AspNetCore.HealthChecks …
9
COPY
src/BuildingBlocks/HealthChecks/src/Microso
ft.Extensions.HealthChecks …
10
COPY
src/BuildingBlocks/EventBus/IntegrationEventLogEF/ …
11
COPY
src/BuildingBlocks/EventBus/EventBus/EventBus.csproj …
12
COPY
src/BuildingBlocks/EventBus/EventBusRabbitMQ/EventBusRabbitMQ.csproj …
13
COPY
src/Building
Blocks/EventBus/EventBusServiceBus/EventBusServiceBus.csproj …
14
COPY
src/BuildingBlocks/WebHostCustomization/WebHost.Customization …
15
COPY
src/BuildingBlocks/HealthChecks/src/Microsoft.Extensions …
16
COPY
src/BuildingBlocks/HealthChecks/src/Microso
ft.Extensions …
17
RUN
dotnet restore src/Services/Catalog/Catalog.API/Catalog.API.csproj
18
COPY
. .
19
WORKDIR
/src/src/Services/Catalog/Catalog.API
20
RUN
dotnet build Catalog.API.csproj -c Release -o /app
21
22
FROM
build AS publish
23
RUN
dotnet publish Catalog.API.csproj -c Release -o /app
24
25
FROM
base AS final
26
WORKDIR
/app
27
COPY
--from=publish /app .
28
ENTRYPOINT
[
"dotnet"
,
"Catalog.API.dll"
]
And these are the details, line by line:
•
Dostları ilə paylaş: |
|
|