Skip to content

Commit 704b45d

Browse files
committed
fix: Swap gnupg2-minimal for gnupg2-full for GPG signature verification
gnupg2-minimal in AL2023 does not include gpg-agent, which is required for gpg --fingerprint. Use dnf swap as recommended by AWS docs.
1 parent 5f05461 commit 704b45d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ FROM --platform=$TARGETPLATFORM public.ecr.aws/amazonlinux/amazonlinux:2023 as m
1919
ARG MOUNTPOINT_VERSION
2020
ARG TARGETARCH
2121
ARG TARGETPLATFORM
22-
RUN dnf install -y gzip wget tar fuse-libs binutils patchelf
22+
RUN dnf install -y gzip wget tar fuse-libs binutils patchelf && \
23+
# gnupg2-minimal doesn't include gpg-agent needed for signature verification.
24+
# https://docs.aws.amazon.com/linux/al2023/ug/gnupg-minimal.html
25+
dnf swap -y gnupg2-minimal gnupg2-full
2326

2427
RUN MP_ARCH=`echo ${TARGETARCH} | sed s/amd64/x86_64/` && \
2528
wget -q "https://s3.amazonaws.com/mountpoint-s3-release/${MOUNTPOINT_VERSION}/$MP_ARCH/mount-s3-${MOUNTPOINT_VERSION}-$MP_ARCH.tar.gz" && \

0 commit comments

Comments
 (0)