fix: upgrade Alpine base packages in Docker images (#40252)

The `alpine:3.24` base image lags behind fixes published to the Alpine
repository.

Both images now run `apk upgrade` before `apk add`. Packages from `apk
add` are already current, so this only affects the preinstalled base
packages.

_Written by Claude (Opus 5.5)._
This commit is contained in:
silverwind authored and GitHub committed 2026-11-06 07:19:07 +00:00
1 parent 917badaae6
commit 0d59b737aa
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -52,7 +52,7 @@ FROM docker.io/library/alpine:3.24 AS gitea
EXPOSE 22 3000
RUN apk --no-cache add \
RUN apk --no-cache upgrade && apk --no-cache add \
bash \
ca-certificates \
curl \
+1 -1
View File
@@ -47,7 +47,7 @@ FROM docker.io/library/alpine:3.24 AS gitea-rootless
EXPOSE 2222 3000
RUN apk --no-cache add \
RUN apk --no-cache upgrade && apk --no-cache add \
bash \
ca-certificates \
dumb-init \