summaryrefslogtreecommitdiffstats
path: root/.github/containers/centos8/Dockerfile
blob: 6bcff1a49ce7194bba43a85e4c84e30cdb6d4dd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM quay.io/centos/centos:stream8

RUN dnf -y group install 'Development Tools'
RUN dnf -y install sudo
RUN dnf -y install dnf-plugins-core
RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
RUN dnf config-manager --set-enabled powertools
RUN dnf -y install xorg-x11-server-source
# Too old in image so breaks cmake
RUN dnf -y update libarchive

RUN useradd -s /bin/bash -m rpm
RUN echo >> /etc/sudoers
RUN echo "rpm ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers

USER rpm
WORKDIR /home/rpm