From 1691de91b6991623494ab84afd29863b7cec3653 Mon Sep 17 00:00:00 2001 From: ruberoid Date: Thu, 16 Oct 2025 23:35:37 +0400 Subject: [PATCH] Returned back dockerfiles source as echo commands. --- src/Nocr.TextMatcher.Host/Dockerfile | 34 +++++++++++------------- src/Nocr.TextMatcher.Migrator/Dockerfile | 34 +++++++++++------------- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/src/Nocr.TextMatcher.Host/Dockerfile b/src/Nocr.TextMatcher.Host/Dockerfile index 3d7cc67..781deae 100644 --- a/src/Nocr.TextMatcher.Host/Dockerfile +++ b/src/Nocr.TextMatcher.Host/Dockerfile @@ -18,25 +18,23 @@ RUN apt-get update && \ COPY . . -# Create NuGet.Config using cat with heredoc +# Create NuGet.Config RUN mkdir -p /root/.nuget/NuGet && \ - cat > /root/.nuget/NuGet/NuGet.Config <<'EOF' - - - - - - - - - - - - - - - -EOF + echo '' > /root/.nuget/NuGet/NuGet.Config && \ + echo '' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo '' >> /root/.nuget/NuGet/NuGet.Config # Publish directly (restore + build + publish in one step) WORKDIR "/src/src/Nocr.TextMatcher.Host" diff --git a/src/Nocr.TextMatcher.Migrator/Dockerfile b/src/Nocr.TextMatcher.Migrator/Dockerfile index e35e0ba..75871bd 100644 --- a/src/Nocr.TextMatcher.Migrator/Dockerfile +++ b/src/Nocr.TextMatcher.Migrator/Dockerfile @@ -12,25 +12,23 @@ RUN apt-get update && \ COPY . . -# Create NuGet.Config using cat with heredoc +# Create NuGet.Config RUN mkdir -p /root/.nuget/NuGet && \ - cat > /root/.nuget/NuGet/NuGet.Config <<'EOF' - - - - - - - - - - - - - - - -EOF + echo '' > /root/.nuget/NuGet/NuGet.Config && \ + echo '' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo ' ' >> /root/.nuget/NuGet/NuGet.Config && \ + echo '' >> /root/.nuget/NuGet/NuGet.Config # Publish directly (restore + build + publish in one step) WORKDIR "/src/src/Nocr.TextMatcher.Migrator"