22 lines
895 B
Text
22 lines
895 B
Text
FROM registry.fedoraproject.org/fedora:40
|
|
|
|
LABEL org.opencontainers.image.description="Simple container image just for create RPM and APT repo."
|
|
|
|
# devscripts: Scripts for Debian Package maintainers
|
|
|
|
RUN dnf install -y dnf5 --setopt=install_weak_deps=False &&\
|
|
dnf5 -y install createrepo_c devscripts reprepro jq wget tree rpm-sign gnupg git \
|
|
rpm-build binutils policycoreutils policycoreutils-python-utils selinux-policy-devel \
|
|
--setopt=install_weak_deps=False \
|
|
--setopt=keepcache=True &&\
|
|
dnf5 -y install ruby rubygem-json \
|
|
--setopt=keepcache=True \
|
|
--exclude=rubygem-rdoc &&\
|
|
rm -rf /var/log/* /var/cache/dnf /root/.cache /usr/share/locale
|
|
|
|
# From the line of the rpm-build is the requirements of the SELinux config rpm builder
|
|
|
|
RUN gem update --system --no-document &&\
|
|
gem install fpm --no-document &&\
|
|
gem clean &&\
|
|
rm -rf /root/.cache
|