26 lines
		
	
	
		
			571 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			571 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
 | |
| WORKDIR /app
 | |
| 
 | |
| FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
 | |
| WORKDIR /src
 | |
| 
 | |
| COPY . .
 | |
| 
 | |
| RUN dotnet tool restore
 | |
| 
 | |
| RUN dotnet restore "CurrencyAPI/CurrencyAPI.fsproj"
 | |
| 
 | |
| WORKDIR "/src/CurrencyAPI/"
 | |
| 
 | |
| RUN dotnet build "CurrencyAPI.fsproj" -c Release -o /app/build
 | |
| 
 | |
| FROM build AS publish
 | |
| RUN dotnet publish "CurrencyAPI.fsproj" -c Release -o /app/publish --no-restore
 | |
| 
 | |
| FROM mcr.microsoft.com/dotnet/aspnet:6.0
 | |
| WORKDIR /app
 | |
| COPY --from=publish /app/publish .
 | |
| EXPOSE 80
 | |
| EXPOSE 443
 | |
| ENTRYPOINT [ "dotnet", "./CurrencyAPI.App.dll" ]
 |