aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 6b4ffe1057605610831ba4256111100c8e49063f (plain)
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
29
30
31
32
FROM registry.centos.org/centos:8

ENV SUMMARY="CentOS 8 builder" \
    DESCRIPTION="CentOS 8 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 install -y centos-release-stream && \
    dnf update -y && \
    dnf install -y \
	'dnf-command(builddep)' \
	'dnf-command(config-manager)' \
        https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
	&& \
    /usr/local/bin/configure-mirror && \
    dnf repolist --all && \
    dnf config-manager --set-enabled Stream-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