From 8fa5e05d2c822ad8b9059908c00646e913c08196 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Sun, 18 Jan 2026 02:10:34 +0700 Subject: [PATCH] build: Remove `--no-restore` flag from dotnet build and publish commands in Dockerfile. --- services/ads-billing-service-net/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/ads-billing-service-net/Dockerfile b/services/ads-billing-service-net/Dockerfile index c71f7ceb..f3f096a9 100644 --- a/services/ads-billing-service-net/Dockerfile +++ b/services/ads-billing-service-net/Dockerfile @@ -20,11 +20,11 @@ COPY src/ ./src/ # EN: Build the application # VI: Build ứng dụng WORKDIR "/src/src/AdsBillingService.API" -RUN dotnet build "AdsBillingService.API.csproj" -c Release -o /app/build --no-restore +RUN dotnet build "AdsBillingService.API.csproj" -c Release -o /app/build # Publish stage / Giai đoạn publish FROM build AS publish -RUN dotnet publish "AdsBillingService.API.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore +RUN dotnet publish "AdsBillingService.API.csproj" -c Release -o /app/publish /p:UseAppHost=false # Runtime stage / Giai đoạn runtime FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final