From e8ee01cbe809867305ff02611155cddffccbb401 Mon Sep 17 00:00:00 2001 From: ruberoid Date: Tue, 28 Oct 2025 00:32:58 +0400 Subject: [PATCH] fix: Replace COPY --from=rootconfig with direct nuget.config copy Docker additional_contexts with --from=rootconfig is not supported by Kaniko. Changed to copy nuget.config directly from build context root. - CI: pipeline already copies nuget.config to submodule root - Docker Compose: users must run ./prepare-build.sh first --- src/Nocr.TelegramClient.Host/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Nocr.TelegramClient.Host/Dockerfile b/src/Nocr.TelegramClient.Host/Dockerfile index fe1b51c..4e24dd4 100644 --- a/src/Nocr.TelegramClient.Host/Dockerfile +++ b/src/Nocr.TelegramClient.Host/Dockerfile @@ -16,8 +16,11 @@ RUN apt-get update && \ update-ca-certificates && \ rm -rf /var/lib/apt/lists/* -# Copy nuget.config from parent repository (via additional_contexts) -COPY --from=rootconfig nuget.config /root/.nuget/NuGet/NuGet.Config +# Copy nuget.config from build context root +# Must be copied to submodule root before building: +# - CI: pipeline copies it with "cp nuget.config telegram-client/" +# - Docker Compose: run ./prepare-build.sh first +COPY nuget.config /root/.nuget/NuGet/NuGet.Config COPY . .