update certificates for docker correct build.

This commit is contained in:
ruberoid 2025-10-14 14:26:12 +04:00
parent 78d1099bfc
commit 33c26622b9
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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