From 33c26622b98fc061e3d31aaed8b6fc3c8caaafff Mon Sep 17 00:00:00 2001 From: ruberoid Date: Tue, 14 Oct 2025 14:26:12 +0400 Subject: [PATCH] update certificates for docker correct build. --- src/Nocr.TextMatcher.Host/Dockerfile | 4 +++- src/Nocr.TextMatcher.Migrator/Dockerfile | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Nocr.TextMatcher.Host/Dockerfile b/src/Nocr.TextMatcher.Host/Dockerfile index 53d6909..76d9981 100644 --- a/src/Nocr.TextMatcher.Host/Dockerfile +++ b/src/Nocr.TextMatcher.Host/Dockerfile @@ -1,11 +1,13 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app -RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates +RUN apt-get install -y curl && rm -rf /var/lib/apt/lists/* EXPOSE 80 EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src +RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates COPY . . # Create NuGet.Config with package source mapping to avoid NU1507 warnings diff --git a/src/Nocr.TextMatcher.Migrator/Dockerfile b/src/Nocr.TextMatcher.Migrator/Dockerfile index d9d6108..bf45016 100644 --- a/src/Nocr.TextMatcher.Migrator/Dockerfile +++ b/src/Nocr.TextMatcher.Migrator/Dockerfile @@ -1,8 +1,12 @@ -FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app +RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates +RUN apt-get install -y curl && rm -rf /var/lib/apt/lists/* + FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src +RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates COPY . . # Create NuGet.Config with package source mapping to avoid NU1507 warnings