-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (14 loc) · 819 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (14 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY TicketFlow.Domain/TicketFlow.Domain.csproj TicketFlow.Domain/
COPY TicketFlow.Contracts/TicketFlow.Contracts.csproj TicketFlow.Contracts/
COPY TicketFlow.Application/TicketFlow.Application.csproj TicketFlow.Application/
COPY TicketFlow.Infrastructure/TicketFlow.Infrastructure.csproj TicketFlow.Infrastructure/
COPY TicketFlow.Presentation/TicketFlow.Presentation.csproj TicketFlow.Presentation/
RUN dotnet restore TicketFlow.Presentation/TicketFlow.Presentation.csproj
COPY . .
RUN dotnet publish TicketFlow.Presentation/TicketFlow.Presentation.csproj -c Release -o /app/publish --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "TicketFlow.Presentation.dll"]