From fa136fc7a4efdbad3cf700f8e4ef2957929e022b Mon Sep 17 00:00:00 2001 From: ruberoid Date: Thu, 16 Oct 2025 23:35:38 +0400 Subject: [PATCH] Returned back dockerfiles source as echo commands. --- src/Nocr.Users.Host/Dockerfile | 34 ++++++++++++++---------------- src/Nocr.Users.Migrator/Dockerfile | 34 ++++++++++++++---------------- 2 files changed, 32 insertions(+), 36 deletions(-) diff --git a/src/Nocr.Users.Host/Dockerfile b/src/Nocr.Users.Host/Dockerfile index 3cd0741..dfd2171 100644 --- a/src/Nocr.Users.Host/Dockerfile +++ b/src/Nocr.Users.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.Users.Host" diff --git a/src/Nocr.Users.Migrator/Dockerfile b/src/Nocr.Users.Migrator/Dockerfile index 5652658..52b1f93 100644 --- a/src/Nocr.Users.Migrator/Dockerfile +++ b/src/Nocr.Users.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.Users.Migrator"