From 11e323eb577763256ff77b86306930fabb625983 Mon Sep 17 00:00:00 2001 From: Stephen Walsh <868017+stphnwlsh@users.noreply.github.com> Date: Wed, 2 Dec 2026 19:29:19 +0000 Subject: [PATCH] Say the container images pick up OS package updates at build time --- src/content/docs/graphql/guides/ship-the-container.mdx | 2 ++ src/content/docs/lambda/guides/run-locally.mdx | 2 ++ src/content/docs/mcp/guides/ship-the-container.mdx | 2 ++ src/content/docs/minimalapi/guides/ship-the-container.mdx | 2 ++ src/content/docs/webapi/guides/ship-the-container.mdx | 2 ++ 5 files changed, 10 insertions(+) diff --git a/src/content/docs/graphql/guides/ship-the-container.mdx b/src/content/docs/graphql/guides/ship-the-container.mdx index fe16af1..bf6a258 100644 --- a/src/content/docs/graphql/guides/ship-the-container.mdx +++ b/src/content/docs/graphql/guides/ship-the-container.mdx @@ -9,6 +9,8 @@ import { Aside } from '@astrojs/starlight/components'; The `run` stage of the `Dockerfile` is the whole API: one image, built on `mcr.microsoft.com/dotnet/aspnet:10.0-alpine`, that listens on port 7330 and runs as the image's non-root `app` user. It runs anywhere a container runs, which these days is everywhere, including a surprising number of fridges. +The `run` stage also runs `apk upgrade` when it builds. Security fixes often reach Alpine before the .NET base image picks them up, so rebuild the image now and then and you get them too. + ## Build it ```bash diff --git a/src/content/docs/lambda/guides/run-locally.mdx b/src/content/docs/lambda/guides/run-locally.mdx index 49bce91..aaa6d1d 100644 --- a/src/content/docs/lambda/guides/run-locally.mdx +++ b/src/content/docs/lambda/guides/run-locally.mdx @@ -9,6 +9,8 @@ import { Tabs, TabItem, Aside } from '@astrojs/starlight/components'; The image is built on the [AWS Lambda .NET base image](https://gallery.ecr.aws/lambda/dotnet), which includes the Lambda runtime interface emulator. Your function runs locally exactly the way Lambda runs it, just with fewer invoices. +The `run` stage also runs `dnf upgrade` when it builds. Security fixes often reach Amazon Linux before the Lambda base image picks them up, so rebuild the image now and then and you get them too. + ## Build and run diff --git a/src/content/docs/mcp/guides/ship-the-container.mdx b/src/content/docs/mcp/guides/ship-the-container.mdx index a9142d4..1845c11 100644 --- a/src/content/docs/mcp/guides/ship-the-container.mdx +++ b/src/content/docs/mcp/guides/ship-the-container.mdx @@ -9,6 +9,8 @@ import { Aside } from '@astrojs/starlight/components'; The `run` stage of the `Dockerfile` is the whole server: one image, built on `mcr.microsoft.com/dotnet/aspnet:10.0-alpine`, that listens on port 7320 and runs as the image's non-root `app` user. It runs anywhere a container runs, which these days is everywhere, including a surprising number of fridges. +The `run` stage also runs `apk upgrade` when it builds. Security fixes often reach Alpine before the .NET base image picks them up, so rebuild the image now and then and you get them too. + ## Build it ```bash diff --git a/src/content/docs/minimalapi/guides/ship-the-container.mdx b/src/content/docs/minimalapi/guides/ship-the-container.mdx index 3c32bf6..10f518e 100644 --- a/src/content/docs/minimalapi/guides/ship-the-container.mdx +++ b/src/content/docs/minimalapi/guides/ship-the-container.mdx @@ -9,6 +9,8 @@ import { Aside } from '@astrojs/starlight/components'; The `run` stage of the `Dockerfile` is the whole API: one image, built on `mcr.microsoft.com/dotnet/aspnet:10.0-alpine`, that listens on port 7310 and runs as the image's non-root `app` user. It runs anywhere a container runs, which these days is everywhere, including a surprising number of fridges. +The `run` stage also runs `apk upgrade` when it builds. Security fixes often reach Alpine before the .NET base image picks them up, so rebuild the image now and then and you get them too. + ## Build it ```bash diff --git a/src/content/docs/webapi/guides/ship-the-container.mdx b/src/content/docs/webapi/guides/ship-the-container.mdx index fc63a13..ecdb73d 100644 --- a/src/content/docs/webapi/guides/ship-the-container.mdx +++ b/src/content/docs/webapi/guides/ship-the-container.mdx @@ -9,6 +9,8 @@ import { Aside } from '@astrojs/starlight/components'; The `run` stage of the `Dockerfile` is the whole API: one image, built on `mcr.microsoft.com/dotnet/aspnet:10.0-alpine`, that listens on port 7340 and runs as the image's non-root `app` user. It runs anywhere a container runs, which these days is everywhere, including a surprising number of fridges. +The `run` stage also runs `apk upgrade` when it builds. Security fixes often reach Alpine before the .NET base image picks them up, so rebuild the image now and then and you get them too. + ## Build it ```bash