1FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-env
2WORKDIR /app
3COPY *.sln ./
4COPY Secure.Payments.Web.Api/Secure.Payments.Web.Api.csproj ./Secure.Payments.Web.Api/
5COPY Secure.Payments.Dto/Secure.Payments.Dto.csproj ./Secure.Payments.Dto/
6
7RUN dotnet restore
8COPY ./ .
9RUN dotnet build
10
11RUN dotnet publish -c Release -o out Secure.Payments.Web.Api
12
13FROM mcr.microsoft.com/dotnet/aspnet:3.1
14WORKDIR /app
15COPY /app/out .
16ENTRYPOINT ["dotnet","Secure.Payments.Web.Api.dll"]Created on 9/29/2021