docker/Dockerfile aktualisiert

This commit is contained in:
2026-08-26 11:30:21 +02:00
parent d191c67d5b
commit 6801215b27
+21 -21
View File
@@ -1,30 +1,30 @@
FROM almalinux:10 FROM almalinux:10
# dnf-plugins-core -> "dnf download" # createrepo_c bringt auch modifyrepo_c mit.
# createrepo_c -> createrepo_c + modifyrepo_c # libappstream-glib liefert appstreamcli fuer die optionale Validierung.
# rpm-sign -> rpmsign/rpmkeys (verify upstream sigs, re-sign with our key)
# gnupg2 -> gpg (generates/holds the mirror's own signing key)
# python3-pyyaml -> YAML parsing in sync_helpers.py
# git -> pulling the sources.yaml from a git repo (optional)
# curl -> fetching upstream gpgkeys
RUN dnf -y install \ RUN dnf -y install \
dnf-plugins-core \
createrepo_c \ createrepo_c \
rpm-sign \ dnf-plugins-core \
gnupg2 \
python3-pyyaml \
git \ git \
curl \ openssh-clients \
python3 \
python3-pyyaml \
jq \
cronie \
appstream \
&& dnf clean all && dnf clean all
WORKDIR /opt/rpm-mirror # yq (Go-Variante) fuer das YAML-Parsing in sync.sh
ARG YQ_VERSION=v4.44.3
RUN curl -fsSL -o /usr/local/bin/yq \
"https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" \
&& chmod +x /usr/local/bin/yq
COPY sync.sh sync_helpers.py /opt/rpm-mirror/ COPY sync.sh /usr/local/bin/sync.sh
RUN chmod +x /opt/rpm-mirror/sync.sh COPY appstream-gen.py /usr/local/bin/appstream-gen.py
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/sync.sh \
/usr/local/bin/appstream-gen.py \
/usr/local/bin/entrypoint.sh
COPY docker/syncer/entrypoint.sh /entrypoint.sh ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
RUN chmod +x /entrypoint.sh
# sync.sh needs root to write /etc/yum.repos.d/*.repo - default container
# user is root, don't change it.
ENTRYPOINT ["/entrypoint.sh"]