fix docker file
Some checks failed
release-dev / release-dev (push) Failing after 11s

This commit is contained in:
Suphonchai Phoonsawat 2025-04-24 11:04:33 +07:00
parent 92847e6be2
commit 16b0990454

View file

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