Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY . .
RUN ./docker/build/install-task.sh
RUN TAGS="cert pam" task build

FROM alpine:3.21.2
FROM alpine:3.22.2

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While upgrading to 3.22.2 is a great step for security, we can further improve the determinism and security of this build by pinning the base image to its digest. Tags are mutable and can be updated, which could lead to pulling an unexpected or compromised image. Using the digest ensures you always build from the exact same base image.

I recommend finding the SHA256 digest for alpine:3.22.2 and updating this line to use it, for example:

FROM alpine@sha256:<digest-for-alpine-3.22.2>

RUN apk --no-cache --no-progress add \
bash \
ca-certificates \
Expand Down