19 lines
		
	
	
		
			467 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			467 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM mcr.microsoft.com/dotnet/core/aspnet:2.2 AS base
 | |
| WORKDIR /app
 | |
| EXPOSE 80
 | |
| 
 | |
| FROM mcr.microsoft.com/dotnet/core/sdk:2.2 AS build
 | |
| WORKDIR /src
 | |
| COPY . .
 | |
| WORKDIR /src/src/Services/Identity/Identity.API
 | |
| RUN dotnet restore -nowarn:msb3202,nu1503
 | |
| RUN dotnet build --no-restore -c Release -o /app
 | |
| 
 | |
| FROM build AS publish
 | |
| RUN dotnet publish --no-restore -c Release -o /app
 | |
| 
 | |
| FROM base AS final
 | |
| WORKDIR /app
 | |
| COPY --from=publish /app .
 | |
| ENTRYPOINT ["dotnet", "Identity.API.dll"]
 |