aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..3873a82
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,31 @@
+FROM quay.io/almalinux/almalinux:9
+
+ENV SUMMARY="AlmaLinux 9 builder" \
+ DESCRIPTION="AlmaLinux 9 image for test builds and rpm package builds."
+
+LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \
+ summary="${SUMMARY}" \
+ description="${DESCRIPTION}"
+
+USER root
+
+COPY configure-mirror /usr/local/bin
+RUN /usr/local/bin/configure-mirror && \
+ dnf update -y && \
+ dnf install -y \
+ 'dnf-command(builddep)' \
+ 'dnf-command(config-manager)' \
+ https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \
+ && \
+ /usr/local/bin/configure-mirror && \
+ dnf repolist --all && \
+ dnf config-manager --set-enabled powertools && \
+ dnf install -y \
+ fedora-packager tito createrepo \
+ autoconf automake libtool \
+ make cmake meson ninja-build \
+ gcc gcc-c++ binutils \
+ glibc-devel openssl-devel \
+ bc flex bison tree \
+ && \
+ dnf clean all -y