fix OOM Error
All checks were successful
Build & Deploy on Dev / build (push) Successful in 54s

This commit is contained in:
Suphonchai Phoonsawat 2026-05-15 16:37:14 +07:00
parent 9c2caa3f4a
commit 2b000cbd69
5 changed files with 95 additions and 63 deletions

View file

@ -20,4 +20,9 @@ RUN dotnet publish "BMA.EHR.Recruit.csproj" -c Release -o /app/publish /p:UseApp
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
# GC configuration for better memory management in containers
#ENV DOTNET_GCHeapHardLimit=1073741824
#ENV DOTNET_GCConserveMemory=9
ENTRYPOINT ["dotnet", "BMA.EHR.Recruit.dll"]