-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 1.13 KB
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM quay.io/fedora/fedora:43@sha256:7897958969af0632b5352dfb6c63895aa0d3c5ba32b77cc89c1b63558ff30903
LABEL org.opencontainers.image.description="Simple container image just for create RPM and APT repo."
COPY scripts/* /usr/bin
# devscripts: Scripts for Debian Package maintainers
# The set opt will write to /etc/dnf/repos.override.d
# https://dnf5.readthedocs.io/en/latest/dnf5_plugins/config-manager.8.html
RUN dnf5 config-manager setopt fedora-cisco-openh264.enabled=0 &&\
dnf -y install createrepo_c devscripts reprepro jq wget2-wget tree rpm-sign gnupg git rpm-build gh \
# binutils policycoreutils policycoreutils-python-utils selinux-policy-devel \
--setopt=install_weak_deps=False \
--setopt=keepcache=True &&\
dnf -y install ruby rubygem-json \
--setopt=keepcache=True \
--exclude=rubygem-rdoc &&\
rm -rf /var/log/dnf*.log /root/.cache /usr/share/locale
# From the line of the binutils is the requirements of the SELinux config rpm builder
COPY aptly.sh /tmp/aptly.sh
RUN /tmp/aptly.sh
RUN gem update --system --no-document &&\
gem install fpm --no-document &&\
gem clean &&\
rm -rf /root/.cache