diff --git a/Dockerfile b/Dockerfile index 6210aeff23..e6518a7c91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,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 \ diff --git a/Dockerfile.rootless b/Dockerfile.rootless index d7ce351394..d121a57c0e 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -43,7 +43,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 \