From 554087e49afb2e9be97bec34f681b946156f909f Mon Sep 17 00:00:00 2001 From: Ash Davies <3853061+DrizzlyOwl@users.noreply.github.com> Date: Mon, 9 Dec 2024 13:58:46 +0000 Subject: [PATCH] Restrict scope of update task to security packages only (#653) * autoaccept the installation of any available patches --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index aebf2b128..ce8720e62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN ["dotnet", "publish", "TramsDataApi", "--no-build", "-o", "/app"] FROM "mcr.microsoft.com/dotnet/aspnet:${DOTNET_VERSION}-azurelinux3.0" AS base RUN curl "https://packages.microsoft.com/config/rhel/9/prod.repo" | tee /etc/yum.repos.d/mssql-release.repo ENV ACCEPT_EULA=Y -RUN ["tdnf", "update"] +RUN ["tdnf", "update", "--security", "-y"] RUN ["tdnf", "install", "-y", "mssql-tools18"] RUN ["tdnf", "clean", "all"]