Initial Files initial files Add git LFS for meilisearch binaries Update README.md fix
		
			
				
	
	
		
			22 lines
		
	
	
		
			846 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			846 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
| FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base
 | |
| USER $APP_UID
 | |
| WORKDIR /app
 | |
| 
 | |
| FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
 | |
| ARG BUILD_CONFIGURATION=Release
 | |
| WORKDIR /src
 | |
| COPY ["meilisearch.embedded.NET.console/meilisearch.embedded.NET.console.csproj", "meilisearch.embedded.NET.console/"]
 | |
| RUN dotnet restore "meilisearch.embedded.NET.console/meilisearch.embedded.NET.console.csproj"
 | |
| COPY . .
 | |
| WORKDIR "/src/meilisearch.embedded.NET.console"
 | |
| RUN dotnet build "meilisearch.embedded.NET.console.csproj" -c $BUILD_CONFIGURATION -o /app/build
 | |
| 
 | |
| FROM build AS publish
 | |
| ARG BUILD_CONFIGURATION=Release
 | |
| RUN dotnet publish "meilisearch.embedded.NET.console.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
 | |
| 
 | |
| FROM base AS final
 | |
| WORKDIR /app
 | |
| COPY --from=publish /app/publish .
 | |
| ENTRYPOINT ["dotnet", "meilisearch.embedded.NET.console.dll"]
 |