import rpm pgp key before yum install in Alama

See https://cloudlinux.zendesk.com/hc/en-us/articles/12225072530204-yum-update-error-Error-GPG-check-FAILED
This commit is contained in:
Ryo Nakamura
2024-01-18 13:17:57 +09:00
parent 9bdbfe8487
commit 16086ffdb3

View File

@@ -1,7 +1,9 @@
FROM almalinux:8.8
# install pytest, sshd for test, and rpm-build
RUN set -ex && yum -y install \
RUN set -ex && \
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux && \
yum -y install \
python3 python3-pip python3-devel openssh openssh-server openssh-clients rpm-build
RUN python3 -m pip install pytest