add nowarn
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
Suphonchai Phoonsawat 2025-04-24 11:09:59 +07:00
parent 16b0990454
commit 4ca6b7d842
2 changed files with 12 additions and 10 deletions

View file

@ -65,13 +65,13 @@ COPY . .
WORKDIR "/src/BMA.EHR.Leave"
# 3. Build แบบ Release
RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/build
RUN dotnet build "BMA.EHR.Leave.csproj" -c Release -o /app/build
# ---------------------------
# Publish stage
# ---------------------------
FROM build AS publish
RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -nowarn -o /app/publish /p:UseAppHost=false
RUN dotnet publish "BMA.EHR.Leave.csproj" -c Release -o /app/publish /p:UseAppHost=false
# ---------------------------
# Final runtime image