refactor: modernized GenericRepository and UnitOfWork with newer code from Roma

This commit is contained in:
2025-09-21 00:02:26 +03:00
parent 3b321d0ff4
commit ee94ffa373
8 changed files with 192 additions and 176 deletions

View File

@@ -7,17 +7,17 @@ EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["PurpleHackBackend/PurpleHackBackend.csproj", "PurpleHackBackend/"]
RUN dotnet restore "PurpleHackBackend/PurpleHackBackend.csproj"
COPY ["GamificationService.csproj", "GamificationService/"]
RUN dotnet restore "GamificationService/GamificationService.csproj"
COPY . .
WORKDIR "/src/PurpleHackBackend"
RUN dotnet build "PurpleHackBackend.csproj" -c $BUILD_CONFIGURATION -o /app/build
WORKDIR "/src/GamificationService"
RUN dotnet build -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "PurpleHackBackend.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "GamificationService.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "PurpleHackBackend.dll"]
ENTRYPOINT ["dotnet", "GamificationService.dll"]