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
This commit is contained in:
parent
3cf29a5aa1
commit
1a55061e4b
@ -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 text-matcher/"
|
||||
# - Docker Compose: run ./prepare-build.sh first
|
||||
COPY nuget.config /root/.nuget/NuGet/NuGet.Config
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
@ -10,8 +10,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 text-matcher/"
|
||||
# - Docker Compose: run ./prepare-build.sh first
|
||||
COPY nuget.config /root/.nuget/NuGet/NuGet.Config
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user